MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / openActiveTabContextMenu

Function openActiveTabContextMenu

packages/app-core/src/components/VimNav.tsx:1855–1863  ·  view source on GitHub ↗
(
    state: ReturnType<typeof useStore.getState>
  )

Source from the content-addressed store, hash-verified

1853 }
1854
1855 function openActiveTabContextMenu(
1856 state: ReturnType<typeof useStore.getState>
1857 ): boolean {
1858 const target = getActiveTabContextMenuTarget(state)
1859 if (!target) return false
1860 state.setFocusedPanel('editor')
1861 dispatchKeyboardContextMenu(target)
1862 return true
1863 }
1864
1865 function activateSidebarItem(el: HTMLElement | undefined, state: ReturnType<typeof useStore.getState>): void {
1866 if (!el) return

Callers 3

handlerFunction · 0.85
handleTabsKeyFunction · 0.85
handlePreviewKeyFunction · 0.85

Calls 2

Tested by

no test coverage detected