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

Unified Diff: chrome/browser/resources/print_preview/search/destination_list_item.js

Issue 2586113002: MD Settings: ignore modified key events in the profile avatar grid (Closed)
Patch Set: closure Created 4 years 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
Index: chrome/browser/resources/print_preview/search/destination_list_item.js
diff --git a/chrome/browser/resources/print_preview/search/destination_list_item.js b/chrome/browser/resources/print_preview/search/destination_list_item.js
index 48b5b8174f78e0a73664a44c4eb5a44e321edc1c..8b529d45acc919b3f3d5aec44328569b9268b49c 100644
--- a/chrome/browser/resources/print_preview/search/destination_list_item.js
+++ b/chrome/browser/resources/print_preview/search/destination_list_item.js
@@ -227,7 +227,7 @@ cr.define('print_preview', function() {
* @private
*/
onKeyDown_: function(e) {
- if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
+ if (!hasKeyModifiers(e)) {
if (e.keyCode == 13) {
var activeElementTag = document.activeElement ?
document.activeElement.tagName.toUpperCase() : '';
@@ -281,7 +281,7 @@ cr.define('print_preview', function() {
* @private
*/
onExtensionIconKeyDown_: function(e) {
- if (e.shiftKey || e.ctrlKey || e.altKey || e.metaKey)
+ if (hasKeyModifiers(e))
return;
if (e.keyCode != 13 /* Enter */)
return;

Powered by Google App Engine
This is Rietveld 408576698