[Pharo-users] How to add a keyboard shortcut to Rubric?

Alexandre Bergel alexandre.bergel at me.com
Thu Oct 29 08:18:01 EDT 2015


Wow!!!
Powerful example!

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



> On Oct 28, 2015, at 5:58 PM, Nicolai Hess <nicolaihess at gmail.com> wrote:
> 
> adding a custom shortcut for a Rubric-TextMorph is easy:
> 
> 
>     |  window text |
>     text := RubWorkspaceExample new newScrolledText.
>     
>     "define a custom shortcut"
>     text on:$t command do:[
>         text setText: text text asString reverse].
>     
>     window := StandardWindow new.
>     window addMorph: text fullFrame: (0 at 0 corner: 1 at 1) asLayoutFrame.
>     window title: 'Example'.
>     window openInWorld.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20151029/326f8916/attachment.html>


More information about the Pharo-users mailing list