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

Unified Diff: chrome/browser/resources/file_manager/js/photo/gallery.js

Issue 12381076: Files.app: Disables browser shortcut keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/resources/file_manager/js/photo/gallery.js
diff --git a/chrome/browser/resources/file_manager/js/photo/gallery.js b/chrome/browser/resources/file_manager/js/photo/gallery.js
index a330743e0335b06eab4e95191fbb1b2614305024..5a453074cc7376647b2cefe2a18a9b7bcc39dc95 100644
--- a/chrome/browser/resources/file_manager/js/photo/gallery.js
+++ b/chrome/browser/resources/file_manager/js/photo/gallery.js
@@ -185,6 +185,8 @@ Gallery.prototype.initListeners_ = function() {
this.keyDownBound_ = this.onKeyDown_.bind(this);
this.document_.body.addEventListener('keydown', this.keyDownBound_);
+ util.disableBrowserShortcutKeys(this.document_);
+
this.inactivityWatcher_ = new MouseInactivityWatcher(
this.container_, Gallery.FADE_TIMEOUT, this.hasActiveTool.bind(this));
« no previous file with comments | « chrome/browser/resources/file_manager/js/media/video_player.js ('k') | chrome/browser/resources/file_manager/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698