Skip to content

Commit

Permalink
Desktop: Added shortcut Cmd+Option+N to open note in new window, and …
Browse files Browse the repository at this point in the history
…added command to menu bar
  • Loading branch information
laurent22 committed Jan 21, 2025
1 parent 60b2f69 commit 23f75f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app-desktop/gui/MenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,9 @@ function useMenu(props: Props) {
note: {
label: _('&Note'),
submenu: [
menuItemDic.openNoteInNewWindow,
menuItemDic.toggleExternalEditing,
separator(),
menuItemDic.setTags,
menuItemDic.showShareNoteDialog,
separator(),
Expand Down
1 change: 1 addition & 0 deletions packages/app-desktop/gui/menuCommandNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function() {
'textSelectAll',
'textBulletedList',
'toggleExternalEditing',
'openNoteInNewWindow',
'toggleLayoutMoveMode',
'resetLayout',
'toggleMenuBar',
Expand Down
2 changes: 2 additions & 0 deletions packages/lib/services/KeymapService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const defaultKeymapItems = {
{ accelerator: 'Option+Cmd+2', command: 'switchProfile2' },
{ accelerator: 'Option+Cmd+3', command: 'switchProfile3' },
{ accelerator: 'Option+Cmd+Backspace', command: 'permanentlyDeleteNote' },
{ accelerator: 'Option+Cmd+N', command: 'openNoteInNewWindow' },
],
default: [
{ accelerator: 'Ctrl+N', command: 'newNote' },
Expand Down Expand Up @@ -108,6 +109,7 @@ const defaultKeymapItems = {
{ accelerator: 'Ctrl+Alt+1', command: 'switchProfile1' },
{ accelerator: 'Ctrl+Alt+2', command: 'switchProfile2' },
{ accelerator: 'Ctrl+Alt+3', command: 'switchProfile3' },
{ accelerator: 'Ctrl+Alt+N', command: 'openNoteInNewWindow' },
],
};

Expand Down

0 comments on commit 23f75f8

Please sign in to comment.