Changed the onclick handlers for Keyboard CLICKCODES to let updateFocus() scroll the canvas into view as needed, because (at least on iOS) the code that tries prevent the page from scrolling has an annoying "jerking" side-effect; also fixed the old Node web server code that would install onclick handlers for disk images, triggering automatic conversion of JSON to IMG files
This commit is contained in:
parent
ed75397b83
commit
7ca8fa18a1
12 changed files with 19 additions and 18 deletions
|
|
@ -252,7 +252,7 @@ class Keyboard extends Component {
|
|||
control.onclick = function(kbd, sKey, simCode) {
|
||||
return function onKeyboardBindingClick(event) {
|
||||
if (!COMPILED && kbd.messageEnabled()) kbd.printMessage(sKey + " clicked", Messages.KEYS);
|
||||
if (kbd.cmp) kbd.cmp.updateFocus();
|
||||
if (kbd.cmp) kbd.cmp.updateFocus(true);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue