From 1eec2c92cb733b72c39c02002283f42221992c1a Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sun, 7 Jun 2009 03:14:36 +0100 Subject: [PATCH] Fix RegExp to exclude all numbers from key_code --- common/content/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index 94b7c8d1..4d8e84bf 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -438,7 +438,7 @@ function Events() //{{{ const key_code = {}; for (let [k, v] in Iterator(KeyEvent)) - if (/^DOM_VK_(?![A-Z0-1]$)/.test(k)) { + if (/^DOM_VK_(?![A-Z0-9]$)/.test(k)) { k = k.substr(7).toLowerCase(); let names = [k.replace(/(^|_)(.)/g, function (m, n1, n2) n2.toUpperCase()) .replace(/^NUMPAD/, "k")];