wxStyledTextCtrl() grabbing BREAK key

Does wxStyledTextCtrl() grab the BREAK key for internal use? I'm trying to
do

EVT_KEY_DOWN(stc, keydown)

def keydown(evt):
    key = evt.KeyCode()
    # expecting key to be WXK_PAUSE here when the Break key is pressed

But there is no event triggered when pressing the Break key.

···

--
/Jesper

Jesper Eskilson:

Does wxStyledTextCtrl() grab the BREAK key for internal use?

   The default key mapping in scintilla/src/KeyMap.cxx does not configure
the pause/break key to do anything.

   Neil

Jesper Eskilson wrote:

Does wxStyledTextCtrl() grab the BREAK key for internal use? I'm trying to
do

EVT_KEY_DOWN(stc, keydown)

def keydown(evt):
    key = evt.KeyCode()
    # expecting key to be WXK_PAUSE here when the Break key is pressed

But there is no event triggered when pressing the Break key.

Your keydown will be called before wxSTC's so if there is a keyevent then you should see it. If not then you should enter a bug report about it, but the answer may be that it's impossible (or very difficult) to catch on some platforms...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!