mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Desktop: Fix ctrl/cmd-n can create new notes while the trash folder is selected (#11092)
This commit is contained in:
parent
8c4bf057d6
commit
d023ce592c
@ -27,6 +27,10 @@ const useKeymap = (editorControl: CodeMirrorControl) => {
|
||||
binding.accelerator, CodeMirrorVersion.CodeMirror6,
|
||||
),
|
||||
run: () => {
|
||||
if (!CommandService.instance().isEnabled(binding.command)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void CommandService.instance().execute(binding.command);
|
||||
return true;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user