diff --git a/shellinabox/shell_in_a_box.jspp b/shellinabox/shell_in_a_box.jspp index 11a893e..8fa2132 100644 --- a/shellinabox/shell_in_a_box.jspp +++ b/shellinabox/shell_in_a_box.jspp @@ -267,16 +267,16 @@ ShellInABox.prototype.keysPressed = function(ch) { } else if (c < 0x10000) { s += 'E' + hex.charAt( (c >> 12) ) + - hex.charAt(0x8 + (c >> 10) & 0x3 ) + + hex.charAt(0x8 + ((c >> 10) & 0x3)) + hex.charAt( (c >> 6) & 0xF ) + hex.charAt(0x8 + ((c >> 4) & 0x3)) + hex.charAt( c & 0xF ); } else if (c < 0x110000) { s += 'F' + hex.charAt( (c >> 18) ) + - hex.charAt(0x8 + (c >> 16) & 0x3 ) + + hex.charAt(0x8 + ((c >> 16) & 0x3)) + hex.charAt( (c >> 12) & 0xF ) + - hex.charAt(0x8 + (c >> 10) & 0x3 ) + + hex.charAt(0x8 + ((c >> 10) & 0x3)) + hex.charAt( (c >> 6) & 0xF ) + hex.charAt(0x8 + ((c >> 4) & 0x3)) + hex.charAt( c & 0xF ); diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index 54473d4..6ec0efa 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -887,7 +887,7 @@ VT100.prototype.initializeElements = function(container) { '