From dcc85aec5854e25349bce705c7413a4d5dc9f784 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 8 Dec 2013 21:23:12 -0800 Subject: [PATCH] Esc=>Escape, BackQuote=>Backquote to match latest D4E spec --- polyfill | 2 +- tty.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/polyfill b/polyfill index fc2ff48..36bbc21 160000 --- a/polyfill +++ b/polyfill @@ -1 +1 @@ -Subproject commit fc2ff48f6ebed7e80c7b3cd62f83e2f22fd3b9bb +Subproject commit 36bbc210fb65bfd25d075d5eec077822d7b0d5c6 diff --git a/tty.js b/tty.js index 16f372e..95b7f98 100644 --- a/tty.js +++ b/tty.js @@ -615,7 +615,7 @@ function TTY(screenElement, keyboardElement, bell) { case 'Backspace': return 127; case 'Tab': return 9; // NOTE: Blocked elsewhere, for web page accessibility case 'Enter': return 13; - case 'Esc': return 27; + case 'Escape': return 27; case 'ArrowLeft': return 8; case 'ArrowUp': return 11; case 'ArrowRight': return 21; @@ -704,7 +704,7 @@ function TTY(screenElement, keyboardElement, bell) { case 'Minus': return e.ctrlKey ? 31 : e.shiftKey ? ord('_') : ord('-'); case 'Period': return e.shiftKey ? ord('>') : ord('.'); case 'Slash': return e.shiftKey ? ord('?') : ord('/'); - case 'BackQuote': return e.shiftKey ? ord('~') : ord('`'); + case 'Backquote': return e.shiftKey ? ord('~') : ord('`'); case 'BracketLeft': return e.ctrlKey ? 27 : e.shiftKey ? ord('{') : ord('['); case 'Backslash': return e.ctrlKey ? 28 : e.shiftKey ? ord('|') : ord('\\'); case 'BracketRight': return e.ctrlKey ? 29 : e.shiftKey ? ord('}') : ord(']'); @@ -883,5 +883,3 @@ function TTY(screenElement, keyboardElement, bell) { window.getClassList(styleElem).toggle('jsb-flash'); }, 250); } - -