Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4525)

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/key_sequence.js

Issue 540583002: Fix the ChromeVox "sticky key" (pressing Search twice). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/common/key_sequence.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/key_sequence.js b/chrome/browser/resources/chromeos/chromevox/common/key_sequence.js
index 90647ddd42e141144ef1ff2d3057aeeb1d32d847..da5fa913fdbb136f5d4c6045f37f2dc5eacbc930 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/key_sequence.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/key_sequence.js
@@ -387,8 +387,8 @@ cvox.KeySequence.prototype.isKeyModifierActive = function(keyEvent, modifier) {
return (keyEvent.shiftKey || (keyEvent.keyCode == 16));
break;
case 'metaKey':
- return (keyEvent.metaKey ||
- (!cvox.ChromeVox.isChromeOS && keyEvent.keyCode == 91));
+ return (!cvox.ChromeVox.isChromeOS &&
David Tseng 2014/09/04 15:33:33 This line of fixes worries me and seems to say tha
+ (keyEvent.metaKey || keyEvent.keyCode == 91));
break;
case 'searchKeyHeld':
return ((cvox.ChromeVox.isChromeOS && keyEvent.keyCode == 91) ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698