MCPcopy Create free account
hub / github.com/experdot/pointer / closeActiveTab

Function closeActiveTab

src/renderer/src/services/shortcutService.ts:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 | 'global-search'
14
15function closeActiveTab(): void {
16 const { tabs, activeTabId, closeTab } = useTabsStore.getState()
17 const activeTab = tabs.find((tab) => tab.id === activeTabId)
18
19 if (!activeTab || activeTab.closable === false) {
20 return
21 }
22
23 closeTab(activeTab.id)
24}
25
26export async function dispatchAppShortcutAction(
27 action: AppShortcutAction,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected