# HG changeset patch # User John "Elwin" Edwards # Date 1344784975 25200 # Node ID 6cfaf6d202be7e813232ae08d180eb4fa775d4a9 # Parent 077adfeea038f120c47fc523b452ab28f0cfdb3c 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. diff -r 077adfeea038 -r 6cfaf6d202be termemu-keys.js --- 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); },