You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop: Added shortcut Cmd+Option+N to open note in new window, and added command to menu bar
This commit is contained in:
@@ -877,7 +877,9 @@ function useMenu(props: Props) {
|
|||||||
note: {
|
note: {
|
||||||
label: _('&Note'),
|
label: _('&Note'),
|
||||||
submenu: [
|
submenu: [
|
||||||
|
menuItemDic.openNoteInNewWindow,
|
||||||
menuItemDic.toggleExternalEditing,
|
menuItemDic.toggleExternalEditing,
|
||||||
|
separator(),
|
||||||
menuItemDic.setTags,
|
menuItemDic.setTags,
|
||||||
menuItemDic.showShareNoteDialog,
|
menuItemDic.showShareNoteDialog,
|
||||||
separator(),
|
separator(),
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export default function() {
|
|||||||
'textSelectAll',
|
'textSelectAll',
|
||||||
'textBulletedList',
|
'textBulletedList',
|
||||||
'toggleExternalEditing',
|
'toggleExternalEditing',
|
||||||
|
'openNoteInNewWindow',
|
||||||
'toggleLayoutMoveMode',
|
'toggleLayoutMoveMode',
|
||||||
'resetLayout',
|
'resetLayout',
|
||||||
'toggleMenuBar',
|
'toggleMenuBar',
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ const defaultKeymapItems = {
|
|||||||
{ accelerator: 'Option+Cmd+2', command: 'switchProfile2' },
|
{ accelerator: 'Option+Cmd+2', command: 'switchProfile2' },
|
||||||
{ accelerator: 'Option+Cmd+3', command: 'switchProfile3' },
|
{ accelerator: 'Option+Cmd+3', command: 'switchProfile3' },
|
||||||
{ accelerator: 'Option+Cmd+Backspace', command: 'permanentlyDeleteNote' },
|
{ accelerator: 'Option+Cmd+Backspace', command: 'permanentlyDeleteNote' },
|
||||||
|
{ accelerator: 'Option+Cmd+N', command: 'openNoteInNewWindow' },
|
||||||
],
|
],
|
||||||
default: [
|
default: [
|
||||||
{ accelerator: 'Ctrl+N', command: 'newNote' },
|
{ accelerator: 'Ctrl+N', command: 'newNote' },
|
||||||
@@ -108,6 +109,7 @@ const defaultKeymapItems = {
|
|||||||
{ accelerator: 'Ctrl+Alt+1', command: 'switchProfile1' },
|
{ accelerator: 'Ctrl+Alt+1', command: 'switchProfile1' },
|
||||||
{ accelerator: 'Ctrl+Alt+2', command: 'switchProfile2' },
|
{ accelerator: 'Ctrl+Alt+2', command: 'switchProfile2' },
|
||||||
{ accelerator: 'Ctrl+Alt+3', command: 'switchProfile3' },
|
{ accelerator: 'Ctrl+Alt+3', command: 'switchProfile3' },
|
||||||
|
{ accelerator: 'Ctrl+Alt+N', command: 'openNoteInNewWindow' },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user