Closed davidben closed 12 years ago
This is particularly a nuisance on the Mac where Ctrl-array switches desktops, but those shortcuts are pretty unusable there anyway. Maybe worth switching Cmd and Ctrl or something like that.
Alternatively, figure out why the return key doesn't work.
This feature is actually part of SDL. Except NaCl doesn't hook it to anything. Have some working code, but it needs a little tidying because it can be upstreamed. Need to hook up SDL_ActiveEvent
. SDL_APPINPUTFOCUS
(focus event listener) in particular, but may as well also do SDL_APPMOUSEFOCUS
(PPAPI enter/leave events) and SDL_APPACTIVE
(page visibility API or future pp::View::IsPageVisible
).
If you use, e.g., Ctrl-tab to switch tabs, the key-up for Ctrl is never sent and the game thinks you never released the key.