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

Unified Diff: ui/views/style/platform_style.h

Issue 2607923002: MacViews: Handle Space and Return keys correctly for Buttons. (Closed)
Patch Set: -- Created 3 years, 12 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: ui/views/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index e71720fbce3b714c30ebabab18757260a0eec5ac..a20188185e2fc0f37094c2c2c89c6fb3cc2a6a0e 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -46,6 +46,12 @@ class VIEWS_EXPORT PlatformStyle {
// The menu button's action to show the menu.
static const CustomButton::NotifyAction kMenuNotifyActivationAction;
+ // Action to perform on a button when the Space key is pressed.
+ static const CustomButton::ButtonAction kButtonActionOnSpace;
+
+ // Whether Return key clicks the focused control.
+ static const bool kClickControlOnReturn;
tapted 2017/01/04 04:54:31 I read "Control" and thought "Control+Return" - i.
karandeepb 2017/01/04 06:14:45 Is kReturnClicksFocusedControl better?
tapted 2017/01/05 00:34:41 Hm. I see your point. I was thinking of it in term
+
// Whether TreeViews get a focus ring on the entire TreeView when focused.
static const bool kTreeViewHasFocusRing;

Powered by Google App Engine
This is Rietveld 408576698