mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 03:30:40 +02:00
* Tons of work with menu/prompts refactoring -- more to come soon
* More work with menu/prompt accets
This commit is contained in:
parent
5faa11664b
commit
bac2f63c1a
21 changed files with 871 additions and 238 deletions
|
@ -6,6 +6,7 @@ var miscUtil = require('./misc_util.js');
|
|||
var strUtil = require('./string_util.js');
|
||||
var util = require('util');
|
||||
var assert = require('assert');
|
||||
var _ = require('lodash');
|
||||
|
||||
exports.EditTextView = EditTextView;
|
||||
|
||||
|
@ -32,8 +33,7 @@ EditTextView.prototype.onKeyPress = function(key, isSpecial) {
|
|||
assert(1 === key.length);
|
||||
|
||||
// :TODO: how to handle justify left/center?
|
||||
|
||||
if(this.text.length < this.maxLength) {
|
||||
if(!_.isNumber(this.maxLength) || this.text.length < this.maxLength) {
|
||||
key = strUtil.stylizeString(key, this.textStyle);
|
||||
|
||||
this.text += key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue