Better ol.events.condition.platformModifierKeyOnly documentation

See https://github.com/google/closure-library/blob/master/closure/goog/events/browserevent.js#L175-L180
This commit is contained in:
Frederic Junod
2015-10-15 12:50:28 +02:00
parent 4d43fe3346
commit b477367099

View File

@@ -140,8 +140,9 @@ ol.events.condition.noModifierKeys = function(mapBrowserEvent) {
/** /**
* Return `true` if only the platform-modifier-key (e.g. the windows-key) is * Return `true` if only the platform-modifier-key (the meta-key on Mac,
* pressed, `false` otherwise (e.g. when additionally the shift-key is pressed). * ctrl-key otherwise) is pressed, `false` otherwise (e.g. when additionally
* the shift-key is pressed).
* *
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
* @return {boolean} True if only the platform modifier key is pressed. * @return {boolean} True if only the platform modifier key is pressed.