Skip to content

Commit 39f565e

Browse files
committed
Fix Increase/Decrease font size for different keyboard layouts
1 parent bc19d7b commit 39f565e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/src/processing/app/Editor.java

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

13981398
menu.addSeparator();
13991399

1400-
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
1400+
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), KeyEvent.VK_PLUS);
14011401
increaseFontSizeItem.addActionListener(new ActionListener() {
14021402
public void actionPerformed(ActionEvent e) {
14031403
base.handleFontSizeChange(1);
14041404
}
14051405
});
14061406
menu.add(increaseFontSizeItem);
14071407

1408-
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');
1408+
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), KeyEvent.VK_MINUS);
14091409
decreaseFontSizeItem.addActionListener(new ActionListener() {
14101410
public void actionPerformed(ActionEvent e) {
14111411
base.handleFontSizeChange(-1);

0 commit comments

Comments
 (0)