Skip to content

Commit

Permalink
Change keystroke
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedlund committed Jun 4, 2018
1 parent 2f24819 commit 0a72c05
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -27,6 +27,7 @@
import ca.phon.app.session.editor.undo.MergeAllGroupsEdit;
import ca.phon.app.session.editor.view.record_data.RecordDataEditorView;
import ca.phon.session.Record;
import ca.phon.util.OSInfo;
import ca.phon.util.icons.*;

public class MergeAllGroupsCommand extends RecordDataEditorViewAction {
Expand All @@ -43,7 +44,8 @@ public MergeAllGroupsCommand(RecordDataEditorView editor) {

putValue(NAME, "Merge all groups");
putValue(SMALL_ICON, IconManager.getInstance().getIcon(ICON, IconSize.SMALL));
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_M, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | KeyEvent.SHIFT_DOWN_MASK));
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_M,
(OSInfo.isMacOs() ? Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() : KeyEvent.ALT_DOWN_MASK ) | KeyEvent.SHIFT_DOWN_MASK));
}

@Override
Expand Down

0 comments on commit 0a72c05

Please sign in to comment.