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

Unified Diff: views/controls/tree/tree_view.h

Issue 150051: Fixing focus problems with the combobox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | « views/controls/native_control_win.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tree/tree_view.h
===================================================================
--- views/controls/tree/tree_view.h (revision 19517)
+++ views/controls/tree/tree_view.h (working copy)
@@ -156,10 +156,9 @@
// Handles a variety of potential TreeView messages.
virtual LRESULT OnNotify(int w_param, LPNMHDR l_param);
- // Yes, we want to be notified of key down for two reasons. To circumvent
- // VK_ENTER from toggling the expaned state when processes_enter_ is false,
- // and to have F2 start editting.
- virtual bool NotifyOnKeyDown() const { return true; }
+ // We pay attention to key down for two reasons: to circumvent VK_ENTER from
+ // toggling the expaned state when processes_enter_ is false, and to have F2
+ // start editting.
virtual bool OnKeyDown(int virtual_key_code);
virtual void OnContextMenu(const WTL::CPoint& location);
« no previous file with comments | « views/controls/native_control_win.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698