mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
v1.2.7 - prefix search, keyboard shortcut fixes, GNOME AppImage fix
This commit is contained in:
@@ -67,11 +67,12 @@
|
||||
|
||||
function handleKeydown(e: KeyboardEvent) {
|
||||
const mod = e.ctrlKey || e.metaKey;
|
||||
if (mod && e.key === 's') {
|
||||
if (mod && !e.shiftKey && e.code === 'KeyS') {
|
||||
e.preventDefault();
|
||||
editor?.forceSave();
|
||||
return;
|
||||
}
|
||||
if (mod && e.shiftKey && e.key === 'M') {
|
||||
if (mod && e.shiftKey && e.code === 'KeyM') {
|
||||
e.preventDefault();
|
||||
$sourceMode = !$sourceMode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user