On Sat, Jul 7, 2012 at 5:52 PM, Sean P. DeNigris <sean@clipperadams.com> wrote:

Guillermo Polito wrote
>
>> - how can I restore a morph's shortcuts to the defaults?
> KMRepository reset
>

I just want to do it for one Morph instance

The thing is what you understand by default :).� Because if you are adding shortcuts dinamically to morphs like:

morph := SomeMorph new.
morph attachKeymapCategory: #someShortcuts.
morph attachKeymapCategory: #someShortcuts2.
morph attachKeymapCategory: #someShortcuts3.
morph attachKeymapCategory: #someShortcuts4.

...
morph attachKeymapCategory: #VIMShortcuts.

when will you consider the default?� Maybe a default is with no shortcuts at all...

Then you may need a static configuration... Or a more intelligent way to store shortcut configurations per morph.
Or the capability to freeze them at some point in time and then go back to that state? But then you have to decide if you can override state, or storing all the checkpoints...

I think we need to find some use cases that need this kind of behavior, so we build the right abstraction...


--
View this message in context: http://forum.world.st/ANN-Vim-Shortcuts-for-Nautilus-Proof-of-concept-tp4638987p4638994.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.