rdw-archive / WebClient

[Proof of Concept] Browser-based client capable of rendering networked multiplayer games using modern web technologies
1 stars 0 forks source link

Keyboard events propagate to all registered listeners when forms are active #27

Open rdw-software opened 3 years ago

rdw-software commented 3 years ago

Example: Typing text into a macro will still toggle the keybindings associated with the individual letters.

Could rely on the browser's focus system, but it doesn't work well in this case. Might have to store a hierarchy of opened frames and disable events for any that aren't currently active manually?

rdw-software commented 3 years ago

Need to do more research on what the best practices are for web applications (JS), but for the WOW client there is EnableKeyboard() and some related APIs.