1
0
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:
teramako
2009-01-09 00:17:18 +09:00
parent e581465101
commit 994993820f

View File

@@ -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