diff --git a/documentation/FEATURES.md b/documentation/FEATURES.md index 65dfaee..392b25b 100644 --- a/documentation/FEATURES.md +++ b/documentation/FEATURES.md @@ -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 | diff --git a/frontend/app.js b/frontend/app.js index d2c4a4d..c767e6e 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -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();