changeset 122:6cfaf6d202be

Improve the probability of detecting numpad 5. Firefox now, in some circumstances, thinks numpad 5 is the clear key, with keycode 12. This makes it detectable.
author John "Elwin" Edwards <elwin@sdf.org>
date Sun, 12 Aug 2012 08:22:55 -0700
parents 077adfeea038
children 0a3ff1267c24
files termemu-keys.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/termemu-keys.js	Sat Aug 11 21:30:12 2012 -0700
+++ b/termemu-keys.js	Sun Aug 12 08:22:55 2012 -0700
@@ -28,6 +28,7 @@
     this[27]  = ["1b", "1b"]; // escape
     this[33]  = ["1b5b357e", "1b5b357e"]; // page up
     this[34]  = ["1b5b367e", "1b5b367e"]; // page down
+    this[12]  = ["1b5b45", "1b5b45"]; // Clear key = numpad 5 (Firefox)
     this.appCursor(false);
     this.appKeypad(false);
   },