1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 03:12:27 +01:00

Fix RegExp to exclude all numbers from key_code

This commit is contained in:
Conrad Irwin
2009-06-07 03:14:36 +01:00
parent 4892a927f8
commit 1eec2c92cb

View File

@@ -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")];