mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Fixed wrong keybinding for "Increase Font Size"
See https://github.com/arduino/Arduino/issues/6806#issuecomment-335044967
This commit is contained in:
parent
4b59dbae24
commit
1a576dd468
@ -1394,12 +1394,8 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
|
||||
increaseFontSizeItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
base.handleFontSizeChange(1);
|
||||
}
|
||||
});
|
||||
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), KeyEvent.VK_PLUS);
|
||||
increaseFontSizeItem.addActionListener(event -> base.handleFontSizeChange(1));
|
||||
menu.add(increaseFontSizeItem);
|
||||
|
||||
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');
|
||||
|
Loading…
x
Reference in New Issue
Block a user