Help with windows keys binding
Jim Menard
jimm at io.com
Mon Mar 19 16:58:40 UTC 2001
Bob Arning writes:
> The methods you probably want to look at to change key bindings are
>
> ParagraphEditor class>>initializeCmdKeyShortcuts
> ParagraphEditor class>>initializeShiftCmdKeyShortcuts
>
> After you change one of these, do
>
> ParagraphEditor initialize
>
> so the changes are recognized.
Bob,
Thanks for the pointers. I found those in the past, but am really confused
by the cmdMap, I think.
For example, I added
cmdMap at: ($a asciiValue + 1) put: #cursorHome:.
cmdMap at: ($e asciiValue + 1) put: #cursorEnd:.
to make ^A go to beginning of line and ^E to go to end of line. I then
performed "ParagraphEditor initialize". I put this code just before the
"CmdActions _ cmdMap" line at the end of initializeCmdKeyShortcuts. No
luck: the keys do what they always did.
What am I missing?
Jim
--
Jim Menard, jimm at io.com, http://www.io.com/~jimm/
"Hey, wait a minute. You've got both eyes! You're no special agent.
You're just some jerk who hates my moustache!" - The Tick
More information about the Squeak-dev
mailing list
|