Hi peace.d, Iâve had a quick look: you can inspire yourself from the class ToolShortcutsCategory. The class has a couple of special things: - it inherits from KMCategory (a keymapping framework class) - it defines `isGlobal` returning true on the class side (to say it defines global shortcuts) - it then has methods defining shortcuts: openUnitTestRunner <shortcut> ^ KMKeymap shortcut: PharoShortcuts current openTestRunnerShortcut action: [ Smalltalk tools openTestRunner ] If you want a shortcut only to be active on a particular tool/window, AND youâre using morphic, take a look at the methods in the Morph class related to keymappings: Cheers, Guille
El 20 oct 2021, a las 10:53, mspgate@gmail.com escribió:
Hello everybody,
how would I create a keyboard shortcut for a method I have defined in my class or package?
for example if I would like to have a keyboard shortcut for a method that opens the Transcript and display the âHello I am the new shortcutâ message?
thanks for the help.
peace.d