Is defined in this method through the keyText: message. Like this:
menuCommandOn: aBuilder
<worldMenu>
(aBuilder item: #Playground)
parent: #InputOutput;
action: [ Smalltalk tools openWorkspace ];
order: 1;
keyText: 'o, p';
help: 'A window used as a scratchpad area where fragments of Pharo code can be entered, stored, edited, and evaluated.';
iconName: #workspace
But, the shortcuts themselves are defined here:
PharoShortcuts >> openPlaygroundShortcut
^ $o meta, $p meta
The text shown for the shortcuts, this one:
Is defined in this method through the
keyText:
message. Like this:But, the shortcuts themselves are defined here:
This causes duplicated logic.