13 lines · 438 B · TypeScript
RawDownload
const MODEL_PICKER_CONTENT_SELECTOR = "[data-model-picker-content]"; /** * Model-picker visibility is already represented by the mounted popover. * Shortcut arbitration reads that source directly instead of mirroring it in * a second React or external store. */export function isModelPickerOpen(): boolean {  return (    typeof document !== "undefined" &&    document.querySelector(MODEL_PICKER_CONTENT_SELECTOR) !== null  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t