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 21084c4..c767e6e 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -88,6 +88,9 @@ function noteApp() { editorWidth: 50, // percentage isResizingSplit: false, + // Dropdown state + showNewDropdown: false, + // DOM element cache (to avoid repeated querySelector calls) _domCache: { editor: null, @@ -170,7 +173,13 @@ function noteApp() { // Ctrl/Cmd + Alt + N for new note if ((e.ctrlKey || e.metaKey) && e.altKey && e.key === 'n') { e.preventDefault(); - this.createNewNote(); + 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 @@ -430,13 +439,13 @@ function noteApp() {
- -