Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot use alphanumeric keyboard in a input element when using the FullScreen API in Google Chrome

In Google Chrome, when I am using FullScreen API and I try to type in alphanumeric content in the input element it does not do anything. It works in Firefox.

Is their a workaround to this problem in Google Chrome?

like image 746
jnbdz Avatar asked May 12 '12 08:05

jnbdz


1 Answers

docElm.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);

check this link

Content from link:

Full screen with key input

For security reasons, most keyboard inputs have been blocked in the fullscreen mode. However, in Google Chrome you can request keyboard support by calling the method with a flag:

docElm.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);

This does not work in Safari, and the method won’t be called.

With Firefox, we are discussing and looking into various ways of how we we could add keyboard input support without jeopardizing the end user’s security. One suggestion, that no one has implemented yet, is the requestFullscreenWithKeys method, which in turn would trigger certain notifications for the user.

like image 102
jjoe Avatar answered Nov 15 '22 05:11

jjoe