fix(gui): forward navigation shortcut on macOS (#1297)(PR #1301)

* fix: forward navigation shortcut on macOS
* apply suggestion
This commit is contained in:
Surendrajat 2021-12-06 19:15:29 +05:30 committed by GitHub
parent 6e8baef9b2
commit 46eeb0bc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -948,7 +948,7 @@ public class MainWindow extends JFrame {
}
};
forwardAction.putValue(Action.SHORT_DESCRIPTION, NLS.str("nav.forward"));
forwardAction.putValue(Action.ACCELERATOR_KEY, getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.ALT_DOWN_MASK));
forwardAction.putValue(Action.ACCELERATOR_KEY, getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.ALT_DOWN_MASK, SystemInfo.IS_MAC));
Action quarkAction = new AbstractAction("Quark Engine", ICON_QUARK) {
@Override