Skip to content

Commit d5085e5

Browse files
facchinmcmaglie
authored andcommitted
Fix Increase/Decrease font size for different keyboard layouts
1 parent 4aec899 commit d5085e5

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

13961396
menu.addSeparator();
13971397

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

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

0 commit comments

Comments
 (0)