ol.events.condition

Source:
  • condition.jsdoc, line 1

Members

<static> always

Stability: experimental

Always true.

Source:
  • condition.js, line 55

<static> never

Stability: experimental

Always false.

Source:
  • condition.js, line 64

Methods

<static> altKeyOnly

Stability: experimental
Parameters:
Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Source:
  • condition.js, line 26
Returns:

True if only the alt key is pressed.

Type
boolean

<static> altShiftKeysOnly

Stability: experimental
Parameters:
Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Source:
  • condition.js, line 40
Returns:

True if only the alt and shift keys are pressed.

Type
boolean

<static> noModifierKeys

Stability: experimental
Parameters:
Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Source:
  • condition.js, line 81
Returns:

True only if there no modifier keys are pressed.

Type
boolean

<static> platformModifierKeyOnly

Stability: experimental
Parameters:
Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Source:
  • condition.js, line 95
Returns:

True if only the platform modifier key is pressed.

Type
boolean

<static> shiftKeyOnly

Stability: experimental
Parameters:
Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Source:
  • condition.js, line 109
Returns:

True if only the shift key is pressed.

Type
boolean

<static> targetNotEditable

Stability: experimental
Parameters:
Name Type Description
mapBrowserEvent ol.MapBrowserEvent

Map browser event.

Source:
  • condition.js, line 123
Returns:

True only if the target element is not editable.

Type
boolean