How to disable accelerator hot keys inside wxTextCtrl ?
Posted: Tue May 06, 2014 10:15 am
wx3.0.0. wxMSN and wxOSX.
Hi,
I have a classic application frame containing several widgets as children. Also I added accelerators hotkeys using the menubar and menuitems, for the example, the key 'o' open a file. Some of the widgets are wxTextCtrl and I want that the accelerator table be disabled when the focus is on my wxTextCtrl(s). So that, when I type my text, if I press 'o', I want the 'o' character be added in the textctrl and not the accelerator callback be called.
My question is, what is the simplest / elegant method to do this ?
Thank you
Rémi
Hi,
I have a classic application frame containing several widgets as children. Also I added accelerators hotkeys using the menubar and menuitems, for the example, the key 'o' open a file. Some of the widgets are wxTextCtrl and I want that the accelerator table be disabled when the focus is on my wxTextCtrl(s). So that, when I type my text, if I press 'o', I want the 'o' character be added in the textctrl and not the accelerator callback be called.
My question is, what is the simplest / elegant method to do this ?
Thank you
Rémi