diff --git a/src/meteoJS/Timeline.js b/src/meteoJS/Timeline.js index 2d8a409c..e72a0b67 100644 --- a/src/meteoJS/Timeline.js +++ b/src/meteoJS/Timeline.js @@ -782,13 +782,12 @@ export class Timeline { } }); } - else - if (method in this && - _isEventMatchPressedKeys(event, this._keyboardNavigation[method])) { - this[method](); - event.preventDefault(); - event.stopPropagation(); - } + else if (method in this + && _isEventMatchPressedKeys(event, this._keyboardNavigation[method])) { + this[method](); + event.preventDefault(); + event.stopPropagation(); + } }); }); }