Desktop: Added shortcut Cmd+Option+N to open note in new window, and added command to menu bar

renovate/branches/renovate/encoding_rs-0.x-lockfile
Laurent Cozic 2025-01-21 15:08:20 +00:00
parent 60b2f69620
commit 23f75f8784
3 changed files with 5 additions and 0 deletions

View File

@ -877,7 +877,9 @@ function useMenu(props: Props) {
note: {
label: _('&Note'),
submenu: [
menuItemDic.openNoteInNewWindow,
menuItemDic.toggleExternalEditing,
separator(),
menuItemDic.setTags,
menuItemDic.showShareNoteDialog,
separator(),

View File

@ -32,6 +32,7 @@ export default function() {
'textSelectAll',
'textBulletedList',
'toggleExternalEditing',
'openNoteInNewWindow',
'toggleLayoutMoveMode',
'resetLayout',
'toggleMenuBar',

View File

@ -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' },
@ -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' },
],
};