fix: Ctrl+S in SECTION-TAB exports SF instead of saving section

First Ctrl+S handler (line 8066, handleExportSFS) catches
ALL Ctrl+S before second handler (line 8157, save section)
ever runs. Moved section-tab check into first handler:
activeTab.startsWith('session_') -> handleSaveSectionTab.
Main session Ctrl+S still exports SF (same as before).
This commit is contained in:
2026-07-28 10:07:02 +07:00
parent aafc750274
commit 5ec329933a
3 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -8065,7 +8065,13 @@ const App = () => {
}
if (ctrl && !alt && e.key === 's') {
e.preventDefault();
handleExportSFS();
var curTab = activeTabRef.current;
if (curTab.startsWith('session_')) {
handleSaveSectionTab(curTab);
showToast('Đã lưu Section', 'success');
} else {
handleExportSFS();
}
return;
}
if (ctrl && alt && e.key === 's' || ctrl && e.shiftKey && e.key === 's') {