Changing keyboard binding
bert at freudenbergs.de
Sat Jan 12 09:45:13 UTC 2008
On Jan 12, 2008, at 4:09 , Amos wrote:
> I'm trying to change the keyboard binding for "Cmd + up arrow" and
> "Cmd + down arrow" - they currently scroll the view up/down if the
> text is long enough, which I don't use at all. But when I modify
> ParagraphEditor class>>initializeCmdKeyShortcuts and/or
> ParagraphEditor>>cursorUp: and cursorDown: (which seem to be assigned
> by initializeCmdKeyShortcuts), it seems that these methods are called
> only when the up/down arrows are pressed *without* a command key.
> Does anyone know where this binding to scroll up/down is set and how I
> can override it? Apparently ParagraphEditor is the wrong place, or did
> I miss something? Would any of the packages mentioned in
> http://wiki.squeak.org/squeak/1844 under "relevant squeak packages"
> P.S.: What I'm trying to achieve is to get "Cmd + up/down arrow" to
> move the lines containing the current selection, or the current line
> if nothing is selected, up/down by one line.
If you have a scrolling wheel mouse, the VM translates scroll events
into cmd-up/down keyboard events. These events are used for scrolling
the views / morphs, see
- Bert -
More information about the Squeak-dev