I use StyledTextCtrl in application and faced with a problem. Main menu
has shortcuts like Ctrl+Alt+C, Ctrl+Alt+... In Windows is all OK, but
in Ubuntu when user pressed this shortcut, StyledTextCtrl adds control
characters ("SOH", "STX", "ETX" etc) and menu item is not activated.
How can I fix it? wxPython 3.0.2. Ubuntu 16.10 + Unity.
I saw two interesting features. CmdKeyClear must be called after
CmdKeyClearAll. If CmdKeyClear called before CmdKeyClearAll,
CmdKeyClear(ord('C'), stc.STC_SCMOD_ALT | stc.STC_SCMOD_CTRL) is not
work.
If CmdKeyClear(ord('C'), stc.STC_SCMOD_ALT | stc.STC_SCMOD_CTRL) called
after CmdKeyClearAll, then ETX will be disabled, but shortkey
Ctrl+Alt+C in main menu still is not executed.
···
That is strange - I'm using Ubuntu too.
When doing the following I do not get the control chars added,
I saw two interesting features. CmdKeyClear must be called after
CmdKeyClearAll. If CmdKeyClear called before CmdKeyClearAll,
CmdKeyClear(ord(‘C’), stc.STC_SCMOD_ALT | stc.STC_SCMOD_CTRL) is not
work.
If CmdKeyClear(ord(‘C’), stc.STC_SCMOD_ALT | stc.STC_SCMOD_CTRL) called
after CmdKeyClearAll, then ETX will be disabled, but shortkey
Ctrl+Alt+C in main menu still is not executed.
I’m not using CmdKeyClearAll and it is working on Ubuntu 14 and Ubuntu 16.
Concerning the menu shortcuts - it might be that these are system wide shortcuts
Check system settings for keyboard and window manager.
I'm not using CmdKeyClearAll and it is working on Ubuntu 14 and
Ubuntu 16. Concerning the menu shortcuts - it might be that these are
system wide shortcuts
Check system settings for keyboard and window manager.
If the cursor is not on StyledTextCtrl, the shortcuts is working.