keyIsFor beta
Function of @v12-engine/client/common
ts
export declare function keyIsFor(event: Event, root: Element): boolean;Whether a key is for what is in root (a game, the map editor): pressed with the focus inside it, or with the focus nowhere in particular (the page itself). With the focus on something else of the page, it is that one's; and on something marked data-own-keys (a view of its own: a panel's stage), it is that one's too