* Added logic that enables soft keyboard icon by default on some clients like Kindle, PS Vita, iPad, ...
This commit is contained in:
parent
106bc0aa85
commit
aaa00551bf
1 changed files with 6 additions and 0 deletions
|
@ -297,6 +297,12 @@ VT100.prototype.getUserSettings = function() {
|
||||||
this.disableAlt = true;
|
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) {
|
if (this.visualBell) {
|
||||||
this.signature = Math.floor(16807*this.signature + 1) %
|
this.signature = Math.floor(16807*this.signature + 1) %
|
||||||
((1 << 31) - 1);
|
((1 << 31) - 1);
|
||||||
|
|
Loading…
Reference in a new issue