|
I posted a similar question many moons ago, but through various
circmstances need to re-post. I apologise in advance...
I have a RichTextEdit tied to the appropriate RichTextPresenter, with
the necessary model set up. In createSchematicWiring: I say
<<textPresenter when #keyPressed: send #keyPress: to: self.>>
To test, I pop up the window and move the cursor using one of the
arrow keys. If I put a self halt message in the keyPress: method, I
notice that the debug box pops up before the cursor position has been
updated. It looks like the sequence of events is:
when a Key is Pressed:
1) fire the onKeyPress event
2) update the cursor in the RichTextEdit
I actually need the sequence of events to be reversed, as in:
when a Key is Pressed:
1) update the cursor
2) fire the onKeyPress event
Can anyone point me in the right direction? This is specific to
Dolphin 3, I'm afraid. I would upgrade, but I got myself into enough
trouble buying the version I have, so no upgrade is in the cards!
Thanks in advance.
Regards,
Dean Powell
Edmonton, Canada
|