Hi,

I need a bit of help in trying to add some kind of shortcuts to 
PluggableTextMorph. The following code used to work for shortcuts like "CMD+o":

 (PluggableTextMorph
                on: textModel
                ...)
                onKeyStrokeSend: #keystroke:from: to: textModel;
GLMTextModel>>keystroke: anEvent from: aMorph
        anEvent anyModifierKeyPressed ifTrue: [ "check the do the shortcut 
work" ]


However, in the recent Pharo 1.3, if I press "CMD+o", first the "o" is added to 
the text as a regular character, and then keystroke:from: is executed.

Is there a way of capturing the event before it gets interpreted by the Morph? 
Or is there another solution?

Cheers,
Doru

--
www.tudorgirba.com

"Every now and then stop and ask yourself if the war you're fighting is the 
right one."




Reply via email to