Various fixes from game jam
This commit is contained in:
parent
e6aec78cce
commit
ed187ad05f
12 changed files with 45 additions and 28 deletions
|
|
@ -26,8 +26,8 @@ let defaultin_plugin = (function () {
|
|||
break;
|
||||
|
||||
case 13: // Enter key
|
||||
var outtext = inputfield.val(); // Grab the text from which-ever inputfield is focused
|
||||
if ( outtext && !event.shiftKey ) { // Enter Key without shift --> send Mesg
|
||||
var outtext = inputfield.val() || ""; // Grab the text from which-ever inputfield is focused
|
||||
if ( !event.shiftKey ) { // Enter Key without shift --> send Mesg
|
||||
var lines = outtext.trim().replace(/[\r]+/,"\n").replace(/[\n]+/, "\n").split("\n");
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
plugin_handler.onSend( lines[i].trim() );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue