1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 02:02:27 +01:00

Fix feedkeys.

This commit is contained in:
Kris Maglione
2008-11-29 14:45:21 +00:00
parent f44c3ebfbc
commit 4041d81f7f

View File

@@ -886,16 +886,16 @@ function Events() //{{{
{
if (modifier) // check for modifiers
{
ctrl = /[C]-/i.test(matches[1]);
alt = /[A]-/i.test(matches[1]);
shift = /[S]-/i.test(matches[1]);
meta = /[M]-/i.test(matches[1]);
ctrl = /[C]-/i.test(modifier);
alt = /[A]-/i.test(modifier);
shift = /[S]-/i.test(modifier);
meta = /[M]-/i.test(modifier);
}
if (keyname.length == 1)
{
if (!ctrl && !alt && !shift && !meta)
return false; // an invalid key like <a>
charCode = matches[2].charCodeAt(0);
charCode = keyname.charCodeAt(0);
}
else if (keyname.toLowerCase() == "space")
{
@@ -905,7 +905,7 @@ function Events() //{{{
{
string = "<Nop>";
}
else if (keyCode = getKeyCode(matches[2]))
else if (keyCode = getKeyCode(keyname))
{
charCode = 0;
}