Fixed cancellation of key injection whenever a soft key is pressed

This commit is contained in:
Jeff Parsons 2017-06-17 17:43:43 -07:00 • committed by Jeff Parsons
commit cb43a6b360
5 changed files with 1964 additions and 1964 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -252,7 +252,7 @@ class Keyboard extends Component {
return function onKeyboardBindingClick(event) {
if (!COMPILED && kbd.messageEnabled()) kbd.printMessage(sKey + " clicked", Messages.KEYS);
if (kbd.cmp) kbd.cmp.updateFocus();
this.sInjectBuffer = ""; // actual key events should stop any injection currently in progress
kbd.sInjectBuffer = ""; // actual key events should stop any injection currently in progress
kbd.updateShiftState(simCode, true); // future-proofing if/when any LOCK keys are added to CLICKCODES
kbd.addActiveKey(simCode, true);
};
@ -264,7 +264,7 @@ class Keyboard extends Component {
this.bindings[id] = control;
var fnDown = function(kbd, sKey, simCode) {
return function onKeyboardBindingDown(event) {
this.sInjectBuffer = ""; // actual key events should stop any injection currently in progress
kbd.sInjectBuffer = ""; // actual key events should stop any injection currently in progress
kbd.addActiveKey(simCode);
};
}(this, sBinding, Keyboard.SOFTCODES[sBinding]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long