Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard keys not working in chrome.app when in full-screen

When switching to full-screen in a Google Chrome Packaged app (using webkitRequestFullScreen), most of the keyboard keys are not working except for the space button, enter, backspace and arrows.

Is there any way that the other keys (all numbers and letters) are functional when in full-screen mode?

I noticed that most keys do not trigger keydown, keypress and keyup events.

This is a problem especially when working on apps like for example a VNC client, where key events are crucial.

like image 574
Stefania Avatar asked Apr 09 '13 09:04

Stefania


People also ask

Why are my keyboard shortcuts not working in Chrome?

An easy way to check is by removing/uninstalling them from Chrome. To do that, simply right-click on the Chrome extension icon on the top right corner and tap on remove from Chrome. On the extension page, select Remove from Chrome. Restart and try using Chrome shortcuts again.


1 Answers

There are two fullscreen implementations, which differ by a single character. Use the newer HTML Fullscreen specification with webkitRequestFullscreen (lower case 'screen').

The older specification accessed with webkitRequestFullScreen (upper case 'Screen') needs Element.ALLOW_KEYBOARD_INPUT for keyboard support. Avoid, as this is likely to be deprecated.

like image 111
Vincent Scheib Avatar answered Oct 02 '22 12:10

Vincent Scheib