From e803408058186a7a9a61c456246f145abcaccd13 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Apr 2020 20:35:22 +0200 Subject: [PATCH] Document wxWindow::PopupMenu() effect on focus This may be not obvious, so mention it explicitly. --- interface/wx/window.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/wx/window.h b/interface/wx/window.h index eabeef5f7d..c6daa5ee0f 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -3054,6 +3054,9 @@ public: The position where the menu will appear can be specified either as a wxPoint @a pos or by two integers (@a x and @a y). + Note that this function switches focus to this window before showing + the menu. + @remarks Just before the menu is popped up, wxMenu::UpdateUI is called to ensure that the menu items are in the correct state. The menu does not get deleted by the window.