1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

Fixed wrong keybinding for "Increase Font Size"

See https://github.com/arduino/Arduino/issues/6806#issuecomment-335044967
This commit is contained in:
Cristian Maglie 2018-08-15 00:11:41 +02:00
parent 4b59dbae24
commit 1a576dd468

View File

@ -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"), '-');