diff --git a/src/dom/common/dom-view.tsx b/src/dom/common/dom-view.tsx index c797fcfa..73eea308 100644 --- a/src/dom/common/dom-view.tsx +++ b/src/dom/common/dom-view.tsx @@ -904,6 +904,8 @@ abstract class DOMView { if (this._selectedAnnotationIDs.length === 1 && (key.endsWith('Shift-ArrowLeft') || key.endsWith('Shift-ArrowRight'))) { + event.preventDefault(); + let annotation = this._annotationsByID.get(this._selectedAnnotationIDs[0])!; let oldRange = this.toDisplayedRange(annotation.position)!; if (annotation.type === 'note') { @@ -963,7 +965,6 @@ abstract class DOMView { this._options.onUpdateAnnotations([annotation]); } - event.preventDefault(); return; }