Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

rightPanelShortcuts.ts

7 lines320 Bytes

1import type { KeybindingCommand } from "@t3tools/contracts";
2​
3import { isContextMenuOpen } from "../contextMenuFallback";
4​
5export function isRightPanelShortcutBlockedByContextMenu(command: KeybindingCommand | null) {
6 return (command === "rightPanel.close" || command === "rightPanel.toggle") && isContextMenuOpen();
7}