[Pkg-mozext-commits] [nostalgy] 170/235: improve the test to avoid capturing keys when an input field is focused
David Prévot
taffit at alioth.debian.org
Tue Oct 8 20:42:15 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository nostalgy.
commit a331ae13b5e64e948f2b9612275634a65968fbbb
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date: Tue Aug 11 17:42:05 2009 +0000
improve the test to avoid capturing keys when an input field is focused
git-svn-id: http://nostalgy.googlecode.com/svn/trunk@170 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
CHANGES | 3 +++
content/nostalgy.js | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/CHANGES b/CHANGES
index f11d887..fd39cb9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+Since 0.2.20
+ - improve the test to avoid capturing keys when an input field is focused
+
0.2.20
- repair the "`" thing
diff --git a/content/nostalgy.js b/content/nostalgy.js
index f9a6395..d2a8bad 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -962,7 +962,7 @@ function onNostalgyKeyPress(ev) {
}
var kn = RecognizeKey(ev);
- if (ev.charCode && ev.originalTarget.localName == "input"
+ if (ev.charCode && ev.originalTarget.localName.toLowerCase() == "input"
&& !ev.ctrlKey && !ev.altKey)
return;
var k = nostalgy_active_keys[kn];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git
More information about the Pkg-mozext-commits
mailing list