diff --git a/core/config.js b/core/config.js index 816e3c6a..a3db7efc 100644 --- a/core/config.js +++ b/core/config.js @@ -79,7 +79,7 @@ function getDefaultConfig() { users : { usernameMin : 2, - usernameMax : 16, + usernameMax : 16, // Note that FidoNet wants 36 max usernamePattern : '^[A-Za-z0-9~!@#$%^&*()\\-\\_+]+$', passwordMin : 6, passwordMax : 128, diff --git a/core/multi_line_edit_text_view2.js b/core/multi_line_edit_text_view2.js index 363ab294..3f8a8938 100644 --- a/core/multi_line_edit_text_view2.js +++ b/core/multi_line_edit_text_view2.js @@ -802,6 +802,7 @@ function MultiLineEditTextView2(options) { // // :TODO: apply word wrapping such that text can be re-adjusted if it can now fit on prev self.keyPressLeft(); // same as hitting left - jump to previous line + self.keyPressBackspace(); } }; diff --git a/mods/menu.json b/mods/menu.json index 4a8849db..4acca8af 100644 --- a/mods/menu.json +++ b/mods/menu.json @@ -215,6 +215,7 @@ "Vertical Menu Views", "Horizontal Menu Views", "Art Display", + "Message Editor", "Some More Stuff", "Other" ], @@ -245,6 +246,10 @@ { "value" : { "1" : 6 }, "action" : "@menu:demoArtDisplay" + }, + { + "value" : { "1" : 7 }, + "action" : "@menu:demoMessageEditor" } ] } @@ -424,6 +429,10 @@ "demoDefaultsDosAnsi" : { "art" : "WE-CIZB.ANS", "options" : { "cls" : true } + }, + "demoMessageEditor" : { + "module" : "message_editor", + "options" : { "cls" : true } } /* diff --git a/mods/message_editor.js b/mods/message_editor.js new file mode 100644 index 00000000..d44153da --- /dev/null +++ b/mods/message_editor.js @@ -0,0 +1,18 @@ +/* jslint node: true */ +'use strict'; + +var MenuModule = require('../core/menu_module.js').MenuModule; + +exports.getModule = MessageEditorModule; + +exports.moduleInfo = { + name : 'Message Editor', + desc : 'A module for editing messages', + author : 'NuSkooler', +}; + +function MessageEditorModule(menuConfig) { + MenuModule.call(this, menuConfig); +} + +require('util').inherits(MessageEditorModule, MenuModule); \ No newline at end of file