Added some iOS usability improvements (related to soft keys/buttons and annoying focus/zoom changes)

This commit is contained in:
Jeff Parsons 2016-08-23 16:08:48 -07:00
commit 97f8e87ca3
4 changed files with 186 additions and 173 deletions

View file

@ -369,8 +369,12 @@ SerialPort8080.prototype.setBinding = function(sHTMLType, sBinding, control, sVa
serial.receiveData(sValue);
/*
* Give focus back to the machine (since clicking the button takes focus away).
*
* if (serial.cmp) serial.cmp.updateFocus();
*
* iOS Usability Improvement: NOT calling updateFocus() keeps the soft keyboard down
* (assuming it was already down).
*/
if (serial.cmp) serial.cmp.updateFocus();
return true;
};
return true;