newbie. creating keyboard shortcuts

Stephane Ducasse ducasse at
Thu Jan 18 08:46:50 UTC 2001


I extended the way the shortcut are handled so that each text object or 
paragraph editor can share or have its own disptach table.
This way I can implement sort of method completion 

This was working in 2.8 and I did not try with 2.9

> Resent-date: Wed, 17 Jan 2001 23:14:23 +0000
> Date: Wed, 17 Jan 2001 15:16:06 -0800
> Resent-from: squeak at
> From: Scott Wallace <Scott.Wallace at>
> Subject: Re: newbie. creating keyboard shortcuts
> Resent-sender: squeak-request at
> X-Sender: scottw at
> To: Raymond Tiefenthal <r.tiefenthal at>
> Resent-cc: recipient list not shown: ;
> Cc: squeak at
> Resent-message-id: <P7PDIC.A.Qj.PdiZ6 at>
> MIME-version: 1.0
> Content-transfer-encoding: 7BIT
> X-Loop: squeak at
> X-Mailing-List: <squeak at> archive/latest/27938
> Raymond,
> Look at PasteUpMorph.keystrokeInWorld:.  The way cmd-t brings up a 
> transcript should serve as a good model for what you want to do.
> I use a customized version of this method on my system that also lets 
> me get to a change sorter, get a new workspace, etc., very quickly, 
> without having to touch the mouse.
> Hope this helps,
>   -- Scott
> PS:  this is on 2.9a.
> At 12:01 AM +0100 1/18/01, Raymond Tiefenthal wrote:
> >Hi,
> >
> >i've searched the wiki up and down, but couldn't find any hint how to do
> >that. I want to assign code to keys. More preceisly, I want - lets say F1 -
> >to activate my browser window and - lets say F2 - to activate my workspace
> >whenever I press it from anywhere in a morphic project. It would be very
> >helpful, if you could show me some code on that.

Stephane DUCASSE (ducasse at
"if you knew today was your last day on earth, what would you do 
different? ... especially if, by doing something different, today 
might not be your last day on earth" Calvin&Hobbes

University of Bern, Institut fuer informatik and Mathematik
IAM-SCG, 10 neubruckstrasse, CH-3012 Bern, Switzerland.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Multiple Shortcuts-SD.cs.gz
Type: application/octet-stream
Size: 4750 bytes
Desc: Multiple Shortcuts-SD.cs.gz
Url :

More information about the Squeak-dev mailing list