NewTools
NewTools copied to clipboard
Duplicated logic for showing the shortcuts
The text shown for the shortcuts, this one:
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
This causes duplicated logic.