Skip to content

Commit 3148b99

Browse files
committed
Fix Increase/Decrease font size for different keyboard layouts
1 parent 50f2082 commit 3148b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/processing/app/Editor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1413,15 +1413,15 @@ public void actionPerformed(ActionEvent e) {
14131413

14141414
menu.addSeparator();
14151415

1416-
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
1416+
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), KeyEvent.VK_PLUS);
14171417
increaseFontSizeItem.addActionListener(new ActionListener() {
14181418
public void actionPerformed(ActionEvent e) {
14191419
base.handleFontSizeChange(1);
14201420
}
14211421
});
14221422
menu.add(increaseFontSizeItem);
14231423

1424-
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');
1424+
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), KeyEvent.VK_MINUS);
14251425
decreaseFontSizeItem.addActionListener(new ActionListener() {
14261426
public void actionPerformed(ActionEvent e) {
14271427
base.handleFontSizeChange(-1);

0 commit comments

Comments
 (0)