Skip to content

Commit e8e71c5

Browse files
committed
Fix Increase/Decrease font size for different keyboard layouts
1 parent e18261f commit e8e71c5

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
@@ -1394,15 +1394,15 @@ public void actionPerformed(ActionEvent e) {
13941394

13951395
menu.addSeparator();
13961396

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

1405-
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');
1405+
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), KeyEvent.VK_MINUS);
14061406
decreaseFontSizeItem.addActionListener(new ActionListener() {
14071407
public void actionPerformed(ActionEvent e) {
14081408
base.handleFontSizeChange(-1);

0 commit comments

Comments
 (0)