From f56a83cabfb40abe439b65a5754e308416f8f8d5 Mon Sep 17 00:00:00 2001 From: Nav Date: Thu, 24 Aug 2023 00:25:05 +0100 Subject: [PATCH] Only consume ESC key press event if necessary, in hex viewer scene --- .../HexViewerWidget/ItemGraphicsScene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }