feat: make sure isSaving is checked on hotkey saving

This commit is contained in:
DuroCodes
2026-03-27 16:02:54 -04:00
parent 187cefc74d
commit 80758ef0f2

View File

@@ -48,6 +48,7 @@ export function SaveButton({ tabs, theme, className }: SaveButtonProps) {
const onKeyDown = (e: KeyboardEvent) => {
if (e.key !== "s" || !(e.ctrlKey || e.metaKey)) return;
e.preventDefault();
if (isSavingRef.current) return;
void handleSave();
};