Only consume ESC key press event if necessary, in hex viewer scene

This commit is contained in:
Nav
2023-08-24 00:25:05 +01:00
parent 4979daf062
commit f56a83cabf

View File

@@ -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;
}