Re: Mac shortcut keys issue. Keys being sent to parent frame window.

Vadim Zeitlin <[email protected]> Tue, 25 Mar 2025 16:27:43 +0100
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Tue, 25 Mar 2025 06:18:26 -0700 (PDT) Tony Kennedy wrote:

TK> On the Mac, if I have a floating wxMiniFrame (or AUI panel) that contains a 
TK> text control, any shortcut keys (CMD-C, CMD-V etc) are sent to the parent 
TK> wxFrame window. 

 Sorry, I'm afraid this is one of these things that Mac just does
differently, i.e. I believe that it sends accelerators from palette windows
to the parent by default, and I have no idea about how to convince it not
to do it, especially without breaking anything else.

 You probably need to track the key handling in wxOSX (setting
WXTRACE=keyevent may help to see better what's going on) and try to find a
place where the event handling diverges from the desired. Maybe this will
give you an idea about how to change it.

 Sorry but this is all I can say without spending (much more) time (than I
can afford) on this.

 Good luck!
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZ+LLbwAKCRAG6kHeT2we
hge+AJ9SLS+gneLpeolow/IYp7D7fWrsTgCgoLqYVYPpYWK62hhAkwNJr9j4C84=
=ZD+Y
-----END PGP SIGNATURE-----