mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-25 02:13: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] == "\\") // 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