Discussion:
Issue with AssignCmdKey, SCK_LEFT, and SCMOD_ALT on OSX
Paul K
2013-12-31 01:22:16 UTC
Permalink
Neil:

I ran into a strange issue with SCK_LEFT and SCMOD_ALT combination on OSX
trying to map it to some command. For some reason I can't get it to work,
but it seems to only affect LEFT+ALT combination. If I try LEFT+CMD, it
works; if I try LEFT+ALT+SHIFT, it works; if I try RIGHT+ALT, it works; if
I try LEFT+ALT with a different command (I'm trying SCI_WORDLEFT), it
doesn't work.

I'm using this from wxSTC, so I'm not sure what may be causing this issue
(or where it is). My actual command looks like this:
editor:CmdKeyAssign(wxstc.wxSTC_KEY_LEFT, wxstc.wxSTC_SCMOD_ALT,
wxstc.wxSTC_CMD_WORDLEFT). All the values seem to be correct:
wxstc.wxSTC_KEY_LEFT=302, wxstc.wxSTC_SCMOD_ALT=4,
wxstc.wxSTC_CMD_WORDLEFT=2308. Is there something I'm doing incorrectly, or
is there indeed a problem with this combination?

Paul.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2014-01-01 10:23:49 UTC
Permalink
I ran into a strange issue with SCK_LEFT and SCMOD_ALT combination on OSX trying to map it to some command. For some reason I can't get it to work, but it seems to only affect LEFT+ALT combination. If I try LEFT+CMD, it works; if I try LEFT+ALT+SHIFT, it works; if I try RIGHT+ALT, it works; if I try LEFT+ALT with a different command (I'm trying SCI_WORDLEFT), it doesn't work.
Alt+Left -> SCI_WORDLEFT is the standard binding for Cocoa Scintilla and works fine. I don’t work on wxSTC. You should add some tracing and watch what keyboard events arrive. Its possible that wxWidgets is intercepting this for its own purposes.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Paul K
2014-01-02 18:12:36 UTC
Permalink
Post by Neil Hodgson
Alt+Left -> SCI_WORDLEFT is the standard binding for Cocoa Scintilla and
works fine. I don’t work on wxSTC. You should add some tracing and watch
what keyboard events arrive.

Indeed; it turned out that it was handled in my application before the keys
were getting to Scintilla. Apologies for the noise.

Paul.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...