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:
parent
4b59dbae24
commit
1a576dd468
@ -1394,12 +1394,8 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
|
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
||||||
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
|
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), KeyEvent.VK_PLUS);
|
||||||
increaseFontSizeItem.addActionListener(new ActionListener() {
|
increaseFontSizeItem.addActionListener(event -> base.handleFontSizeChange(1));
|
||||||
public void actionPerformed(ActionEvent e) {
|
|
||||||
base.handleFontSizeChange(1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
menu.add(increaseFontSizeItem);
|
menu.add(increaseFontSizeItem);
|
||||||
|
|
||||||
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');
|
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user