diff --git a/src/EventHandler.tsx b/src/EventHandler.tsx index aff47a38f..e7afeca59 100644 --- a/src/EventHandler.tsx +++ b/src/EventHandler.tsx @@ -223,7 +223,9 @@ export class EventHandler extends React.PureComponent { */ handleMouseEvent = (e: React.MouseEvent) => { const { handleMouseEvent } = this.props; - + if (e.shiftKey) { + this.handleCopy(); + } if (e.type === "mouseup") { this.resetClicked(); if (this.clickedOnce === e.target && this.clickedTwice === e.target) { diff --git a/src/SelectionHandler.tsx b/src/SelectionHandler.tsx index 938d0210c..2c33269e9 100644 --- a/src/SelectionHandler.tsx +++ b/src/SelectionHandler.tsx @@ -39,7 +39,7 @@ export default class SelectionHandler extends React.PureComponent; /** Only state is the selection range */ - state = { ...defaultSelection }; + state = { ...defaultSelection, aminoAcidShiftStart: null, prevAA: null }; /* previous base cursor is over, used in circular drag select */ previousBase: null | number = null; @@ -173,6 +173,21 @@ export default class SelectionHandler extends React.PureComponent