Allow opening wxSearchCtrl menu from keyboard with Alt-Down

The search menu could only be opened by clicking the button showing it,
which doesn't accept focus from the keyboard on purpose, so keyboard and
screen reader users couldn't use it at all.

Handle Alt-Down in the text part of the control and show the menu from
there, as suggested in the comments of the original ticket.

Fixes #18457.

Closes #27093.
This commit is contained in:
Quin Gillespie
2026-09-27 01:48:55 +02:00
committed by Vadim Zeitlin
parent d54b211e26
commit 00ee56c01d
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -169,6 +169,7 @@ protected:
private:
friend class wxSearchButton;
friend class wxSearchTextCtrl;
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
// Implement wxMSW-specific pure virtual function by forwarding it to the