feat: keyboard shortcuts, click-to-select, pulse/glow, smooth orbit resume (#4)

* feat: keyboard shortcuts, click-to-select, pulse/glow, smooth orbit resume

* feat: add camera controls and enhance keyboard shortcuts help; improve flight card accessibility

* feat: enhance flight layers and keyboard shortcuts; improve airline data structure
This commit is contained in:
kew
2026-02-15 21:50:48 +05:30
committed by GitHub
parent 709b73cbbb
commit 06956f8b59
9 changed files with 1166 additions and 55 deletions

View File

@ -48,6 +48,15 @@ export function ControlPanel({
}: ControlPanelProps) {
const [openTab, setOpenTab] = useState<TabId | null>(null);
useEffect(() => {
function handleOpenSearch() {
setOpenTab("search");
}
window.addEventListener("aeris:open-search", handleOpenSearch);
return () =>
window.removeEventListener("aeris:open-search", handleOpenSearch);
}, []);
const open = (tab: TabId) => setOpenTab(tab);
const close = () => setOpenTab(null);