added shortcut to create new folder

This commit is contained in:
Gamosoft 2025-11-17 14:38:07 +01:00
parent fcb1aec337
commit d09a1092ac
2 changed files with 7 additions and 0 deletions

View File

@ -112,6 +112,7 @@ $$
|---------------|-----|--------| |---------------|-----|--------|
| `Ctrl+S` | `Cmd+S` | Save note | | `Ctrl+S` | `Cmd+S` | Save note |
| `Ctrl+Alt+N` | `Cmd+Option+N` | New note | | `Ctrl+Alt+N` | `Cmd+Option+N` | New note |
| `Ctrl+Alt+F` | `Cmd+Option+F` | New folder |
| `Ctrl+Z` | `Cmd+Z` | Undo | | `Ctrl+Z` | `Cmd+Z` | Undo |
| `Ctrl+Y` or `Ctrl+Shift+Z` | `Cmd+Y` or `Cmd+Shift+Z` | Redo | | `Ctrl+Y` or `Ctrl+Shift+Z` | `Cmd+Y` or `Cmd+Shift+Z` | Redo |
| `F3` | `F3` | Next search match | | `F3` | `F3` | Next search match |

View File

@ -176,6 +176,12 @@ function noteApp() {
this.createNote(); 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 // Ctrl/Cmd + Z for undo
if ((e.ctrlKey || e.metaKey) && !e.shiftKey && e.key === 'z') { if ((e.ctrlKey || e.metaKey) && !e.shiftKey && e.key === 'z') {
e.preventDefault(); e.preventDefault();