diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index c8c487a..2b2e227 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -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);