Rename _ol_events_EventType_ to EventType
This commit is contained in:
committed by
Frederic Junod
parent
ec64789940
commit
479c7a4668
@@ -2,7 +2,7 @@
|
||||
* @module ol/interaction/KeyboardZoom
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import _ol_events_condition_ from '../events/condition.js';
|
||||
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
|
||||
|
||||
@@ -66,8 +66,8 @@ inherits(_ol_interaction_KeyboardZoom_, _ol_interaction_Interaction_);
|
||||
*/
|
||||
_ol_interaction_KeyboardZoom_.handleEvent = function(mapBrowserEvent) {
|
||||
var stopEvent = false;
|
||||
if (mapBrowserEvent.type == _ol_events_EventType_.KEYDOWN ||
|
||||
mapBrowserEvent.type == _ol_events_EventType_.KEYPRESS) {
|
||||
if (mapBrowserEvent.type == EventType.KEYDOWN ||
|
||||
mapBrowserEvent.type == EventType.KEYPRESS) {
|
||||
var keyEvent = mapBrowserEvent.originalEvent;
|
||||
var charCode = keyEvent.charCode;
|
||||
if (this.condition_(mapBrowserEvent) &&
|
||||
|
||||
Reference in New Issue
Block a user