From 4041d81f7f57fba10aaf34eec21b68e19ba1d543 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 29 Nov 2008 14:45:21 +0000 Subject: [PATCH] Fix feedkeys. --- content/events.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/events.js b/content/events.js index e8c5b88a..927de836 100644 --- a/content/events.js +++ b/content/events.js @@ -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 - charCode = matches[2].charCodeAt(0); + charCode = keyname.charCodeAt(0); } else if (keyname.toLowerCase() == "space") { @@ -905,7 +905,7 @@ function Events() //{{{ { string = ""; } - else if (keyCode = getKeyCode(matches[2])) + else if (keyCode = getKeyCode(keyname)) { charCode = 0; }