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

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

Issue 14562006: Handle Esc key press event in Local NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git cl upload Created 7 years, 7 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.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 26001642e0633ed20e2af48573f684d86dd259de..feb45abd45f8f7e1d2fcbb7b1e00d13233f225a1 100644
--- a/chrome/test/data/instant_extended.html
+++ b/chrome/test/data/instant_extended.html
@@ -16,6 +16,7 @@ var firstMostVisitedItemId = 0;
var onNativeSuggestionsCalls = 0;
var onChangeCalls = 0;
var submitCount = 0;
+var onEscKeyPressedCalls = 0;
function getApiHandle() {
if (window.navigator && window.navigator.searchBox)
@@ -78,6 +79,7 @@ function handleKeyPress(event) {
var VKEY_DOWN = 0x28;
if (event.keyCode == VKEY_ESCAPE) {
+ onEscKeyPressedCalls++;
if (suggestionIndex != -1) {
suggestionIndex = -1;
apiHandle.setAutocompleteText(suggestion, behavior);
« no previous file with comments | « chrome/renderer/searchbox/searchbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698