Skip to main content
Participant
December 5, 2008
Question

KeyBoard event and full screen

  • December 5, 2008
  • 4 replies
  • 549 views
Hi to everyone,
Look at this little sample of code. As you see, it lets the user go to full screen mode when he clicks on the blue restangle. A eventListener has been set to lesson to keyBoard events ...and the events detected are printed in a white textField
Here is what I noticed :
In FireFox
When I click to go to full screen mode, a keyboard event is detected ! ... a space bar keydown event !... I swear, i did not press this cursed space bar ! ... strange ...
In IE
No keydown event at all are detected .... and this time I pressed keys on my keyboard as if my life depended on it .... no effect ....
Thanks a lot to anyone who could give me a hint to get out of this problem. In fact, I really nead to make keyboard work in full screen mode (wich is, I guess, a pretty usual thing down here ...)
; )
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
December 7, 2008
you're welcome.

maybe different keyboards/os are not being detected.

Participant
December 7, 2008
Hi kglad,

After some more tries, I noticed that this problem happens on some computers, not on some others....
On my comter, it happened localy (with the page on my pc) but not anymore with the page on the server ...
Well, I think, it's a very tricky bug, ready to play with my nerves for some more weeks ...
Thanks a lot for your help anyway ...
; )
n
kglad
Community Expert
Community Expert
December 7, 2008
it is detected. i don't see the problem you describe with

ff 3.03 fp 10,0,12,36 and

ie 7.0.5730.11 with fp 10,0,2,54
kglad
Community Expert
Community Expert
December 5, 2008
flash imposes security restrictions when you're in fullscreen mode. only some keypresses are detected. and even when you're not in fullscreen mode, flash can't detect the printscreen button.
Participant
December 7, 2008
Thanks Kglad, but in this case I was trying to use the space bar key only wich is supposed to be detected.