fixed shortcut bug

This commit is contained in:
Gamosoft 2025-12-12 19:54:28 +01:00
parent c1de0c84a1
commit d442b63b6f
2 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ date: {{date}}
| `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+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` | `Cmd+Y` | Redo |
| `Ctrl+Shift+Z` | `Cmd+Shift+Z` | Toggle Zen Mode | | `Ctrl+Shift+Z` | `Cmd+Shift+Z` | Toggle Zen Mode |
| `Esc` | `Esc` | Exit Zen Mode | | `Esc` | `Esc` | Exit Zen Mode |
| `F3` | `F3` | Next search match | | `F3` | `F3` | Next search match |

View File

@ -452,8 +452,8 @@ function noteApp() {
this.undo(); this.undo();
} }
// Ctrl/Cmd + Y or Ctrl/Cmd + Shift + Z for redo // Ctrl/Cmd + Y for redo (Ctrl+Shift+Z now opens Zen mode)
if ((e.ctrlKey || e.metaKey) && (e.key === 'y' || (e.shiftKey && e.key === 'z'))) { if ((e.ctrlKey || e.metaKey) && e.key === 'y') {
e.preventDefault(); e.preventDefault();
this.redo(); this.redo();
} }