Intercepting KeyboardEvents
Bob Arning
arning at charm.net
Tue Oct 28 19:43:20 UTC 2003
On Tue, 28 Oct 2003 13:01:50 -0400 "Lex Spoon" <lex at cc.gatech.edu> wrote:
>PS -- does BOB's UI do this kind of thing? How does it do it?
With a little copy-and-paste reuse. ;-) The various widgets include something like this:
keyStroke: evt
| previousText previousSelection |
evt keyCharacter = Character tab ifTrue: [^owner mainWindow tabOutOf: self forward: true].
evt keyCharacter = Character leftTab ifTrue: [^owner mainWindow tabOutOf: self forward: false].
...
Cheers,
Bob
More information about the Squeak-dev
mailing list
|