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:
@@ -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")];
|
||||
|
||||
Reference in New Issue
Block a user