3 Apr 2011 23:54
Re: Catch shift key down
Laughing Water <lw <at> mt.net>
2011-04-03 21:54:32 GMT
2011-04-03 21:54:32 GMT
Oops, sorry. It looks like CAPI:OUTPUT-PANE distinguishes between keys and modifier keys and will not recognize an isolated modifier key press as a gesture. I can see why CAPI works that way: to avoid having key combinations (key plus modifier key) be taken as two separate gestures. I'm not expert enough to say for sure that it can't be done with CAPI, but if I were in your position, I'd be hoping to see a Cocoa solution from Ralph Cavallaro. LW On Apr 3, 2011, at 3:40 PM, Erik Ronström wrote: >> You can do this with CAPI:OUTPUT-PANE. Would that suffice? > > Perhaps I am missing something here, but I can't get it to work. I'm already using an output pane, so that would definitely suffice! > > But pressing shift doesn't seem to generate an event. I can check for them as modifiers if another key is pressed, but I want to catch the actual key down of the shift key. > > Regards > Erik > > >> >> Laughing Water >> >> On Apr 3, 2011, at 1:14 PM, Erik Ronström wrote: >> >>> >>> Hi! >>> >>> Is it possible to catch a key down of the shift (or alt/option or control) key via CAPI? It doesn't seem to generate a :key :press event. >>> >>> I work on Cocoa, and there is a event flagsChanged: on NSResponder. If there is not a clean CAPI solution, is it possible to catch this event in a Cocoa-specific solution? >>> >>> Thanks >>> Erik >>> >
RSS Feed