Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handler.Keyboard does not support keypress events #1208

Open
TDesjardins opened this issue Dec 17, 2013 · 0 comments
Open

Handler.Keyboard does not support keypress events #1208

TDesjardins opened this issue Dec 17, 2013 · 0 comments

Comments

@TDesjardins
Copy link
Contributor

found in: OpenLayers: Release 2.13.1

The handler "OpenLayers.Handler.Keyboard" does not support keypress-events, although the api doc claims it ( http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Handler/Keyboard-js.html#OpenLayers.handler.Keyboard.KEY_EVENTS ).

The reason is that the array 'KEY_EVENTS' in the class 'OpenLayers.Handler.Keyboard' does not contain the entry "keypress":

    /** 
     * Constant: KEY_EVENTS
     * keydown, keypress, keyup
     */
    KEY_EVENTS: ["keydown", "keyup"],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant