(
state: ReturnType<typeof useStore.getState>
)
| 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 |
no test coverage detected