Re: [w3c/uievents] KeyboardEvent.getKeyState() (Issue #374)

Platform APIs are not designed this way. Often, there's little need for complex combinations for most standard applications or OS shortcuts. Typically only games or complex apps (video editing software, DAWS, 3D editors, etc) would need this, and so they usually implement it by devs themselves, or for games, by the game engine. 

To implement, you would keep a set of all keys currently down, and on keyup, you will remove it from the set. For the web, this approach isn't viable as third party web extensions can interfere by preventing propagation.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/374#issuecomment-2113135867
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/issues/374/2113135867@github.com>

Received on Wednesday, 15 May 2024 18:01:42 UTC