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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm

Issue 7027017: Mac. Fix bug where accessibility gives a stuck highlight on item 1 of bookmark folder menus. Just... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/ui/cocoa/bookmarks/bookmark_button.mm
===================================================================
--- chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm (revision 87395)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm (working copy)
@@ -352,6 +352,11 @@
return gDraggedButton;
}
+- (BOOL)canBecomeKeyView {
+ // If button is an item in a folder menu, don't become key.
+ return ![[self cell] isFolderButtonCell];
+}
+
// This only gets called after a click that wasn't a drag, and only on folders.
- (void)secondaryMouseUpAction:(BOOL)wasInside {
const NSTimeInterval kShortClickLength = 0.5;
« 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