changeset 5:e880f7589db5

Add support for the delete key.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 07 May 2012 12:50:02 -0700
parents ee22eb9ab009
children 21738794755e
files shterm.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/shterm.js	Mon May 07 11:09:14 2012 -0700
+++ b/shterm.js	Mon May 07 12:50:02 2012 -0700
@@ -194,6 +194,7 @@
     this[KeyboardEvent.DOM_VK_EQUALS] = ["3d", "2b"];
     this[KeyboardEvent.DOM_VK_SUBTRACT] =   ["2d", "5f"];
     this[KeyboardEvent.DOM_VK_BACK_SPACE] = ["08", "08"];
+    this[KeyboardEvent.DOM_VK_DELETE] = ["1b5b337e", "1b5b337e"];
     this[KeyboardEvent.DOM_VK_ESCAPE] = ["1b", "1b"];
     this[KeyboardEvent.DOM_VK_PAGE_UP] =   ["1b5b357e", "1b5b357e"];
     this[KeyboardEvent.DOM_VK_PAGE_DOWN] = ["1b5b367e", "1b5b367e"];