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

Unified Diff: chrome/test/data/instant_extended.html

Issue 11889003: Fixing ESC in instant-extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 10 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 | « chrome/renderer/searchbox/searchbox_extension.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/instant_extended.html
diff --git a/chrome/test/data/instant_extended.html b/chrome/test/data/instant_extended.html
index c7173abbffd2000e273f097265e847adb0596748..ecdb3035420a6d358fc2ac01f0558a2b654d02b1 100644
--- a/chrome/test/data/instant_extended.html
+++ b/chrome/test/data/instant_extended.html
@@ -61,11 +61,14 @@ function previousSuggestion() {
function handleKeyPress(event) {
var VKEY_UP = 0x26;
var VKEY_DOWN = 0x28;
+ var VKEY_ESCAPE = 0x1B;
if (event.keyCode == VKEY_DOWN) {
nextSuggestion();
} else if (event.keyCode == VKEY_UP) {
previousSuggestion();
+ } else if (event.keyCode == VKEY_ESCAPE) {
+ suggestionIndex = -1;
}
}
« no previous file with comments | « chrome/renderer/searchbox/searchbox_extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698