mirror of
https://github.com/SrIzan10/spongebin.git
synced 2026-05-01 11:05:09 +00:00
feat: make sure isSaving is checked on hotkey saving
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user