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.
This commit is contained in:
John "Elwin" Edwards 2012-08-12 08:22:55 -07:00
parent 51978efd4e
commit 1bb3671a58

View file

@ -28,6 +28,7 @@ var keyHexCodes = {
this[27] = ["1b", "1b"]; // escape this[27] = ["1b", "1b"]; // escape
this[33] = ["1b5b357e", "1b5b357e"]; // page up this[33] = ["1b5b357e", "1b5b357e"]; // page up
this[34] = ["1b5b367e", "1b5b367e"]; // page down this[34] = ["1b5b367e", "1b5b367e"]; // page down
this[12] = ["1b5b45", "1b5b45"]; // Clear key = numpad 5 (Firefox)
this.appCursor(false); this.appCursor(false);
this.appKeypad(false); this.appKeypad(false);
}, },