diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ItemGraphicsScene.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ItemGraphicsScene.cpp index 2c036f95..3c460123 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ItemGraphicsScene.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ItemGraphicsScene.cpp @@ -485,7 +485,7 @@ namespace Widgets void ItemGraphicsScene::keyPressEvent(QKeyEvent* keyEvent) { const auto key = keyEvent->key(); - if (key == Qt::Key_Escape) { + if (key == Qt::Key_Escape && !this->selectedByteItemsByAddress.empty()) { this->clearByteItemSelection(); return; }