mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 18:35:40 +02:00
support multi modifiers
This commit is contained in:
1 parent
e581465101
commit
994993820f
1 file changed
+1
-1
@@ -915,7 +915,7 @@ function Events() //{{{
|
|||||||
//if (keys[i] == "\\") // FIXME: support the escape key
|
//if (keys[i] == "\\") // FIXME: support the escape key
|
||||||
if (keys[i] == "<" && !escapeKey) // start a complex 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 (keyname)
|
||||||
{
|
{
|
||||||
if (modifier) // check for modifiers
|
if (modifier) // check for modifiers
|
||||||
|
|||||||
Reference in new issue
Block a user