import { Key, isKeyRelease, matchesKey } from "@earendil-works/pi-tui"; export function shouldDismissVideo(data: string): boolean { if (isKeyRelease(data)) return false; return matchesKey(data, Key.escape) || matchesKey(data, Key.ctrl("c")); }