PPAPI Keyboard capture

20 views
Skip to first unread message

David Meyer

unread,
Aug 21, 2016, 1:34:24 AM8/21/16
to chromium...@chromium.org
I have ported a game to PNaCl/PPAPI which uses CTRL for firing, and arrow keys for movement. However, on Mac this combination has undesirable side effects. (e.g. Ctrl+UpArrow triggers window switching) 

Is there a way to prevent key combinations from being sent to the OS while an app has focus or is in full screen mode?

Thanks,
- pdox

Jamie Walch

unread,
Aug 21, 2016, 3:20:00 PM8/21/16
to pdo...@gmail.com, Chromium-discuss
There is a draft spec for a system keyboard lock API, which sounds like exactly what you're looking for. It has not yet been accepted, but you can follow its progress and lend support at https://discourse.wicg.io/t/proposal-system-keyboard-lock-api/1594 if you're interested.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss


Reply all
Reply to author
Forward
0 new messages