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

Unified Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 12387036: Bookmark manager: Handle "copy", "cut"and "paste" events only when list or tree pane active. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/bookmark_manager/js/main.js
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js
index 1ec33c651f1d7684ed2203bb48872fe2fd8c75df..3e48e6c64e629e6e133e90b56c38d6ca7f625cf7 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -1697,6 +1697,8 @@ function handleCommand(e) {
// shortcuts for these commands.
function installEventHandlerForCommand(eventName, commandId) {
function handle(e) {
+ if (document.activeElement != list || document.activeElement != tree)
+ return;
var command = $(commandId);
if (!command.disabled) {
command.execute();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698