mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-06 08:45:46 +01:00
support multi modifiers
This commit is contained in:
@@ -915,7 +915,7 @@ function Events() //{{{
|
||||
//if (keys[i] == "\\") // FIXME: support the escape key
|
||||
if (keys[i] == "<" && !escapeKey) // start a complex key
|
||||
{
|
||||
let [match, modifier, keyname] = keys.substr(i).match(/<([CSMA]-)*(.+?)>/i) || [];
|
||||
let [match, modifier, keyname] = keys.substr(i).match(/<((?:[CSMA]-)*)(.+?)>/i) || [];
|
||||
if (keyname)
|
||||
{
|
||||
if (modifier) // check for modifiers
|
||||
|
||||
Reference in New Issue
Block a user