Mercurial > hg > rlgwebd
comparison termemu-keys.js @ 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 | d7eb63cd7a16 |
| children |
comparison
equal
deleted
inserted
replaced
| 121:077adfeea038 | 122:6cfaf6d202be |
|---|---|
| 26 this[8] = ["08", "08"]; // backspace | 26 this[8] = ["08", "08"]; // backspace |
| 27 this[46] = ["1b5b337e", "1b5b337e"]; // delete | 27 this[46] = ["1b5b337e", "1b5b337e"]; // delete |
| 28 this[27] = ["1b", "1b"]; // escape | 28 this[27] = ["1b", "1b"]; // escape |
| 29 this[33] = ["1b5b357e", "1b5b357e"]; // page up | 29 this[33] = ["1b5b357e", "1b5b357e"]; // page up |
| 30 this[34] = ["1b5b367e", "1b5b367e"]; // page down | 30 this[34] = ["1b5b367e", "1b5b367e"]; // page down |
| 31 this[12] = ["1b5b45", "1b5b45"]; // Clear key = numpad 5 (Firefox) | |
| 31 this.appCursor(false); | 32 this.appCursor(false); |
| 32 this.appKeypad(false); | 33 this.appKeypad(false); |
| 33 }, | 34 }, |
| 34 /* Multi-char control sequences! Neat! */ | 35 /* Multi-char control sequences! Neat! */ |
| 35 appCursor: function (on) { | 36 appCursor: function (on) { |
