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

Unified Diff: chrome/browser/resources/options/cookies_view.js

Issue 22298002: Don't close cookies view on search enter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 4 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 | chrome/browser/ui/webui/options/cookies_view_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/cookies_view.js
diff --git a/chrome/browser/resources/options/cookies_view.js b/chrome/browser/resources/options/cookies_view.js
index f33d1143280171d6e6370fad5bc8f4b13cd555c8..4d496684c428f87e17841876cdf7252ac3be9fa6 100644
--- a/chrome/browser/resources/options/cookies_view.js
+++ b/chrome/browser/resources/options/cookies_view.js
@@ -41,8 +41,14 @@ cr.define('options', function() {
initializePage: function() {
OptionsPage.prototype.initializePage.call(this);
- this.pageDiv.querySelector('.cookies-search-box').addEventListener(
+ var searchBox = this.pageDiv.querySelector('.cookies-search-box');
+ searchBox.addEventListener(
'search', this.handleSearchQueryChange_.bind(this));
+ searchBox.onkeydown = function(e) {
+ // Prevent the overlay from handling this event.
+ if (e.keyIdentifier == 'Enter')
+ e.stopPropagation();
+ };
this.pageDiv.querySelector('.remove-all-cookies-button').onclick =
function(e) {
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/cookies_view_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698