added shortcut to create new folder
This commit is contained in:
parent
fcb1aec337
commit
d09a1092ac
|
|
@ -112,6 +112,7 @@ $$
|
|||
|---------------|-----|--------|
|
||||
| `Ctrl+S` | `Cmd+S` | Save note |
|
||||
| `Ctrl+Alt+N` | `Cmd+Option+N` | New note |
|
||||
| `Ctrl+Alt+F` | `Cmd+Option+F` | New folder |
|
||||
| `Ctrl+Z` | `Cmd+Z` | Undo |
|
||||
| `Ctrl+Y` or `Ctrl+Shift+Z` | `Cmd+Y` or `Cmd+Shift+Z` | Redo |
|
||||
| `F3` | `F3` | Next search match |
|
||||
|
|
|
|||
|
|
@ -176,6 +176,12 @@ function noteApp() {
|
|||
this.createNote();
|
||||
}
|
||||
|
||||
// Ctrl/Cmd + Alt + F for new folder
|
||||
if ((e.ctrlKey || e.metaKey) && e.altKey && e.key === 'f') {
|
||||
e.preventDefault();
|
||||
this.createFolder();
|
||||
}
|
||||
|
||||
// Ctrl/Cmd + Z for undo
|
||||
if ((e.ctrlKey || e.metaKey) && !e.shiftKey && e.key === 'z') {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in New Issue