-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Add font size shortcuts (menu and keyboard) #6394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1374,6 +1374,24 @@ public void actionPerformed(ActionEvent e) { | |
|
||
menu.addSeparator(); | ||
|
||
JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '='); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why didn't you choose There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! I hadn't thought about other keyboards. Perhaps There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could work, I'm ccing our UX designer for an advice 🙂 @00alis |
||
increaseFontSizeItem.addActionListener(new ActionListener() { | ||
public void actionPerformed(ActionEvent e) { | ||
base.handleFontSizeChange(1); | ||
} | ||
}); | ||
menu.add(increaseFontSizeItem); | ||
|
||
JMenuItem decreaseFontSizeItem = newJMenuItem(tr("Decrease Font Size"), '-'); | ||
decreaseFontSizeItem.addActionListener(new ActionListener() { | ||
public void actionPerformed(ActionEvent e) { | ||
base.handleFontSizeChange(-1); | ||
} | ||
}); | ||
menu.add(decreaseFontSizeItem); | ||
|
||
menu.addSeparator(); | ||
|
||
JMenuItem findItem = newJMenuItem(tr("Find..."), 'F'); | ||
findItem.addActionListener(new ActionListener() { | ||
public void actionPerformed(ActionEvent e) { | ||
|