-
jer.noble@apple.com authored
Reviewed by Darin Adler. Disable keyboard input (with exceptions) in full-screen mode. https://bugs.webkit.org/show_bug.cgi?id=60943 * fullscreen/full-screen-keyboard-disabled-expected.txt: Added. * fullscreen/full-screen-keyboard-disabled.html: Added. * fullscreen/full-screen-keyboard-enabled-expected.txt: Added. * fullscreen/full-screen-keyboard-enabled.html: Added. 2011-05-16 Jeremy Noble <jer.noble@apple.com> Reviewed by Darin Adler. Disable keyboard input (with exceptions) in full-screen mode. https://bugs.webkit.org/show_bug.cgi?id=60943 Tests: fullscreen/full-screen-keyboard-disabled.html fullscreen/full-screen-keyboard-enabled.html * page/EventHandler.cpp: (WebCore::EventHandler::isKeyEventAllowedInFullScreen): Added. Implements the list of allowed keyboard events in the proposed API. (WebCore::EventHandler::keyEvent): Discard events which are not allowed in full-screen mode. * page/EventHandler.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
52c88590