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 d01fca221906f05f8299c542c69c4ed94c507bab..f03190c6775b4be241306c523cea457bd2eac2b4 100644 |
--- a/chrome/browser/resources/bookmark_manager/js/main.js |
+++ b/chrome/browser/resources/bookmark_manager/js/main.js |
@@ -461,7 +461,12 @@ function handleCanExecuteForDocument(e) { |
case 'undo-command': |
// The global undo command has no visible UI, so always enable it, and |
// just make it a no-op if undo is not possible. |
- e.canExecute = true; |
+ // Just to serprate undo on search text box to be handled |
+ var input = $('term'); |
yosin_UTC9
2014/07/18 01:34:24
nit: Since |input| is used once, we don't need to
chhajer.m
2014/07/18 07:49:46
Done.
|
+ if (e.currentTarget.activeElement == input) |
+ e.canExecute = false; |
+ else |
+ e.canExecute = true; |
break; |
default: |
canExecuteForList(e); |