Skip to content

Commit

Permalink
#5032 - Selection of monomers should disappear when the user moves th…
Browse files Browse the repository at this point in the history
…e cursor (#6136)
  • Loading branch information
rrodionov91 authored Dec 12, 2024
1 parent 8862787 commit c7d3f22
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -804,12 +804,14 @@ export class SequenceMode extends BaseMode {
shortcut: ['ArrowUp'],
handler: () => {
SequenceRenderer.moveCaretUp();
this.unselectAllEntities();
},
},
'move-caret-down': {
shortcut: ['ArrowDown'],
handler: () => {
SequenceRenderer.moveCaretDown();
this.unselectAllEntities();
},
},
'move-caret-forward': {
Expand All @@ -818,8 +820,10 @@ export class SequenceMode extends BaseMode {
if (!this.isEditMode) {
return;
}

SequenceRenderer.moveCaretForward();
SequenceRenderer.resetLastUserDefinedCaretPosition();
this.unselectAllEntities();
},
},
'move-caret-back': {
Expand All @@ -828,8 +832,11 @@ export class SequenceMode extends BaseMode {
if (!this.isEditMode) {
return;
}

SequenceRenderer.moveCaretBack();
SequenceRenderer.resetLastUserDefinedCaretPosition();

this.unselectAllEntities();
},
},
'add-sequence-item': {
Expand Down

0 comments on commit c7d3f22

Please sign in to comment.