Issue #119, #312, #354: Soft keyboard icon

* Added logic that enables soft keyboard icon by default on some
  clients like Kindle, PS Vita, iPad, ...
This commit is contained in:
KLuka 2015-11-17 19:42:58 +01:00
parent 106bc0aa85
commit aaa00551bf

View file

@ -297,6 +297,12 @@ VT100.prototype.getUserSettings = function() {
this.disableAlt = true;
}
// Enable soft keyboard icon on some clients by default.
if (navigator.userAgent.match(/iPad|iPhone|iPod/i) != null ||
navigator.userAgent.match(/PlayStation Vita|Kindle/i) != null) {
this.softKeyboard = true;
}
if (this.visualBell) {
this.signature = Math.floor(16807*this.signature + 1) %
((1 << 31) - 1);