From b47736709913cc1d845ce1ac464ca505b989dd28 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 15 Oct 2015 12:50:28 +0200 Subject: [PATCH] Better ol.events.condition.platformModifierKeyOnly documentation See https://github.com/google/closure-library/blob/master/closure/goog/events/browserevent.js#L175-L180 --- src/ol/events/condition.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/events/condition.js b/src/ol/events/condition.js index e8bef80062..41a9fbadb1 100644 --- a/src/ol/events/condition.js +++ b/src/ol/events/condition.js @@ -140,8 +140,9 @@ ol.events.condition.noModifierKeys = function(mapBrowserEvent) { /** - * Return `true` if only the platform-modifier-key (e.g. the windows-key) is - * pressed, `false` otherwise (e.g. when additionally the shift-key is pressed). + * Return `true` if only the platform-modifier-key (the meta-key on Mac, + * ctrl-key otherwise) is pressed, `false` otherwise (e.g. when additionally + * the shift-key is pressed). * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if only the platform modifier key is pressed.