Vanessa 2025-10-24 11:34:06 +08:00
parent d9e0c56a47
commit ec6e7a019e
9 changed files with 63 additions and 58 deletions

View file

@ -1532,15 +1532,10 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
return;
}
if (matchHotKey("⇧⌘T", event)) {
if ((window as any).siyuan.closedTabs && (window as any).siyuan.closedTabs.length > 0) {
const closedTab = (window as any).siyuan.closedTabs.pop();
openFileById({
app,
id: closedTab.id,
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]
});
}
if (matchHotKey(window.siyuan.config.keymap.general.recentClosed.custom, event)) {
execByCommand({
command: "closeTab"
});
event.preventDefault();
return;
}