diff --git a/src/viewer/log/LogView.tsx b/src/viewer/log/LogView.tsx index d19e804..207f41b 100644 --- a/src/viewer/log/LogView.tsx +++ b/src/viewer/log/LogView.tsx @@ -446,6 +446,13 @@ export default class LogView extends React.Component { } render() { + const selection = getSelection(); + + if(selection !== null){ + // empty unwanted text selection resulting from Shift-click + selection.empty(); + } + const { logFile } = this.props; const containerHeight = this.getVisibleRows() * LOG_ROW_HEIGHT; const containerWidth = Object.keys(this.props.collapsibleRows).length > 0 ? diff --git a/src/viewer/structures/StructureDialog.tsx b/src/viewer/structures/StructureDialog.tsx index 1ee2517..e6b9295 100644 --- a/src/viewer/structures/StructureDialog.tsx +++ b/src/viewer/structures/StructureDialog.tsx @@ -479,6 +479,13 @@ export default class StructureDialog extends React.Component { }, }); + const selection = getSelection(); + + if(selection !== null){ + // empty unwanted text selection resulting from Shift-click + selection.empty(); + } + return (