Add ol.interaction.condition.always

This commit is contained in:
Tom Payne
2013-04-22 14:46:09 +02:00
parent d90f292c71
commit 8d29bf3c20
+9
View File
@@ -1,6 +1,8 @@
goog.provide('ol.interaction.ConditionType'); goog.provide('ol.interaction.ConditionType');
goog.provide('ol.interaction.condition'); goog.provide('ol.interaction.condition');
goog.require('goog.functions');
/** /**
* @typedef {function(goog.events.BrowserEvent): boolean} * @typedef {function(goog.events.BrowserEvent): boolean}
@@ -32,6 +34,13 @@ ol.interaction.condition.altShiftKeysOnly = function(browserEvent) {
}; };
/**
* @param {goog.events.BrowserEvent} browserEvent Browser event.
* @return {boolean} True.
*/
ol.interaction.condition.always = goog.functions.TRUE;
/** /**
* @param {goog.events.BrowserEvent} browserEvent Browser event. * @param {goog.events.BrowserEvent} browserEvent Browser event.
* @return {boolean} True if only the no modifier keys are pressed. * @return {boolean} True if only the no modifier keys are pressed.