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

2015-10-29 Thread Alexandre Bergel
Wow!!! Powerful example! Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > On Oct 28, 2015, at 5:58 PM, Nicolai Hess wrote: > > adding a custom shortcut for a

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

2015-10-29 Thread Johan Fabry
Excellent Nicolai, thanks for the detailed answer! Now I have everything working exactly as I want it to be, so I’m happy :-) (Also, alex, thanks for pointing out the tab in the inspector, but I think I would have not found it since the morph is embedded in a Spec window so it would have been

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

2015-10-28 Thread Johan Fabry
Hi all, I am trying to add a keyboard shortcut to a RubTextEditor. I have tried different ways but nothing seems to work. I have even tried modifying buildShortcutsOn: at class side to include the extra shortcut but it does not have any effect at all. Ideally I’d take an existing instance and

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

2015-10-28 Thread Nicolai Hess
2015-10-28 19:59 GMT+01:00 Johan Fabry : > Hi all, > > I am trying to add a keyboard shortcut to a RubTextEditor. I have tried > different ways but nothing seems to work. I have even tried modifying > buildShortcutsOn: at class side to include the extra shortcut but it does

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

2015-10-28 Thread Johan Fabry
Hi Nicolai, thanks for your answer! However, apparently the problem is a bit different: the shortcut I wanted to add, cmd-s, already existed but I did not realize it! I want to add cmd-s to save the text to a file, but the editor has auto accept set to true and cmd-s calls accept by default.

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

2015-10-28 Thread Aliaksei Syrel
You can use the power of Inspector! Inspect rubric morph and you will see there is shortcuts tab which lists all assigned shortcuts and if you click on one them a new tab will be opened to the right showing exact place in source code when shortcut is defined and its action. On Oct 28, 2015 11:05

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

2015-10-28 Thread Nicolai Hess
2015-10-28 23:56 GMT+01:00 Aliaksei Syrel : > You can use the power of Inspector! Inspect rubric morph and you will see > there is shortcuts tab which lists all assigned shortcuts and if you click > on one them a new tab will be opened to the right showing exact place in >