Commit c01d045b authored by dmazzoni's avatar dmazzoni Committed by Commit bot

Fix the ChromeVox "sticky key" (pressing Search twice).

This broke due to r285254 (http://crbug.com/391008), the fix is trivial.

BUG=408809

Review URL: https://codereview.chromium.org/540583002

Cr-Commit-Position: refs/heads/master@{#293350}
parent 5f5a7f3f
...@@ -387,8 +387,7 @@ cvox.KeySequence.prototype.isKeyModifierActive = function(keyEvent, modifier) { ...@@ -387,8 +387,7 @@ cvox.KeySequence.prototype.isKeyModifierActive = function(keyEvent, modifier) {
return (keyEvent.shiftKey || (keyEvent.keyCode == 16)); return (keyEvent.shiftKey || (keyEvent.keyCode == 16));
break; break;
case 'metaKey': case 'metaKey':
return (keyEvent.metaKey || return (keyEvent.metaKey || (keyEvent.keyCode == 91));
(!cvox.ChromeVox.isChromeOS && keyEvent.keyCode == 91));
break; break;
case 'searchKeyHeld': case 'searchKeyHeld':
return ((cvox.ChromeVox.isChromeOS && keyEvent.keyCode == 91) || return ((cvox.ChromeVox.isChromeOS && keyEvent.keyCode == 91) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment