Override Ctrl-A accelerator when wxTextCtrl has focus in wxMSW

This key combination is used for selecting all text, while it's also
relatively common to use it as an accelerator for some menu item.

Resolve the conflict in favour of wxTextCtrl, i.e. let it have this key
when it has focus, while still allowing to use it as an accelerator
otherwise.
This commit is contained in:
Vadim Zeitlin
2019-09-29 23:45:55 +02:00
parent bd5b3725b9
commit 0aaa05ae3a
2 changed files with 28 additions and 0 deletions

View File

@@ -2048,6 +2048,7 @@ bool wxTextCtrl::MSWShouldPreProcessMessage(WXMSG* msg)
{
switch ( vkey )
{
case 'A':
case 'C':
case 'V':
case 'X':