From 38cd4b47690ba23a308b8eade6fbb39f0f807b23 Mon Sep 17 00:00:00 2001 From: Kinaou Herve Date: Sat, 30 Jan 2016 18:41:18 +0100 Subject: [PATCH] Don't make wxAuiFloatingFrame root of a top navigation domain This allows the accelerators associated with it to propagate to the parent frame, which is what we want to happen in practice. Closes #16870. --- include/wx/aui/floatpane.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/aui/floatpane.h b/include/wx/aui/floatpane.h index fca8a5c6a7..45695e64fd 100644 --- a/include/wx/aui/floatpane.h +++ b/include/wx/aui/floatpane.h @@ -43,6 +43,9 @@ public: void SetPaneWindow(const wxAuiPaneInfo& pane); wxAuiManager* GetOwnerManager() const; + // Allow processing accelerators to the parent frame + virtual bool IsTopNavigationDomain() const { return false; } + protected: virtual void OnMoveStart(); virtual void OnMoving(const wxRect& windowRect, wxDirection dir);