StyledTextCtrl and control characters in Ubuntu

Hello!

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.

···

--
Best wishes!
Eugene Ilin

What I did is using CmdKeyClear function.
See http://www.scintilla.org/ScintillaDoc.html#KeyBindings for more details.

Cheers
Claudia

Hello!

What I did is using CmdKeyClear function.
See Scintilla Documentation for more
details.

Unfortunately, it does not help. By the way, a similar behavior is
observed in the wxPython demo application.

···

--
Best wishes
Eugene Ilin

If shortcut has no Alt key then everything is fine.

···

--
Best wishes
Eugene Ilin

That is strange - I’m using Ubuntu too.
When doing the following I do not get the control chars added,

editor.CmdKeyClear(ord(‘C’), stc.STC_SCMOD_ALT | stc.STC_SCMOD_CTRL)

``

when leaving this I see the ETX

Cheers
Claudia

Hello!

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,

editor.CmdKeyClear(ord('C'), stc.STC_SCMOD_ALT | stc.STC_SCMOD_CTRL)

when leaving this I see the ETX

Cheers
Claudia

--
Best wishes
Eugene Ilin

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.

Cheers
Claudia

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.

···

--
Best wishes.
Eugene Ilin