mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Do not allow resizer to accept focus.
This commit is contained in:
parent
42d1c05e5b
commit
15ac9905ad
@ -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
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user