From 15ac9905ad3255b9e2b5625e31c7ad0798febee7 Mon Sep 17 00:00:00 2001 From: lllucius Date: Fri, 2 Jan 2015 14:39:56 +0000 Subject: [PATCH] Do not allow resizer to accept focus. --- src/toolbars/ToolBar.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/toolbars/ToolBar.cpp b/src/toolbars/ToolBar.cpp index b0fca25ea..886430bce 100644 --- a/src/toolbars/ToolBar.cpp +++ b/src/toolbars/ToolBar.cpp @@ -66,6 +66,9 @@ public: ToolBarResizer(ToolBar *mBar); virtual ~ToolBarResizer(); + // We don't need or want to accept focus. + bool AcceptsFocus() const; + private: void OnErase(wxEraseEvent & event); void OnPaint(wxPaintEvent & event); @@ -107,6 +110,11 @@ ToolBarResizer::~ToolBarResizer() { } +bool ToolBarResizer::AcceptsFocus() const +{ + return false; +} + // // Handle background erasure //