[Event.buttonclick] make buttonclick work on RETURN/SPACE keydown

This commit is contained in:
Éric Lemoine
2012-02-07 17:19:29 +01:00
parent 5539f6e958
commit e551fc672c
3 changed files with 39 additions and 5 deletions
+8 -1
View File
@@ -20,6 +20,12 @@ OpenLayers.Event = {
* element._eventCacheID
*/
observers: false,
/**
* Constant: KEY_SPACE
* {int}
*/
KEY_SPACE: 32,
/**
* Constant: KEY_BACKSPACE
@@ -388,7 +394,8 @@ OpenLayers.Events = OpenLayers.Class({
"mousedown", "mouseup", "mousemove",
"click", "dblclick", "rightclick", "dblrightclick",
"resize", "focus", "blur",
"touchstart", "touchmove", "touchend"
"touchstart", "touchmove", "touchend",
"keydown"
],
/**