Skip to content

Commit 1a576dd

Browse files
committed
Fixed wrong keybinding for "Increase Font Size"
See #6806 (comment)
1 parent 4b59dba commit 1a576dd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/src/processing/app/Editor.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -1394,12 +1394,8 @@ public void actionPerformed(ActionEvent e) {
13941394

13951395
menu.addSeparator();
13961396

1397-
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
1398-
increaseFontSizeItem.addActionListener(new ActionListener() {
1399-
public void actionPerformed(ActionEvent e) {
1400-
base.handleFontSizeChange(1);
1401-
}
1402-
});
1397+
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), KeyEvent.VK_PLUS);
1398+
increaseFontSizeItem.addActionListener(event -> base.handleFontSizeChange(1));
14031399
menu.add(increaseFontSizeItem);
14041400

14051401
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');

0 commit comments

Comments
 (0)