Help with windows keys binding
Bob Arning
arning at charm.net
Mon Mar 19 17:07:10 UTC 2001
On Mon, 19 Mar 2001 10:58:40 -0600 (CST) Jim Menard <jimm at io.com> wrote:
>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,
Not much. I made your changes and cmd-A went to the top and cmd-E went to the bottom. You added these keys as cmd-key (alt-) equivalents, but from your comments I think you were expecting control-key actions. If so, it's #initializeShiftCmdKeyShortcuts you want to change.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|