diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 15:06:10 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 15:06:10 +0000 |
commit | a4ac1b744e4c0caef3e2a4aec035fb5ed61d245a (patch) | |
tree | 4d3e1647258d553a2eda5b46265c5ebe5944c597 /views/controls/tree | |
parent | 59a5d6da97c776fb6c25b88eeb9d853283bc5f13 (diff) | |
download | chromium_src-a4ac1b744e4c0caef3e2a4aec035fb5ed61d245a.zip chromium_src-a4ac1b744e4c0caef3e2a4aec035fb5ed61d245a.tar.gz chromium_src-a4ac1b744e4c0caef3e2a4aec035fb5ed61d245a.tar.bz2 |
Review URL: http://codereview.chromium.org/150051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19582 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/tree')
-rw-r--r-- | views/controls/tree/tree_view.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/views/controls/tree/tree_view.h b/views/controls/tree/tree_view.h index 7e35097..e3427d0 100644 --- a/views/controls/tree/tree_view.h +++ b/views/controls/tree/tree_view.h @@ -156,10 +156,9 @@ class TreeView : public NativeControl, TreeModelObserver { // 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); |