Only consume ESC key press event if necessary, in hex viewer scene
This commit is contained in:
@@ -485,7 +485,7 @@ namespace Widgets
|
|||||||
void ItemGraphicsScene::keyPressEvent(QKeyEvent* keyEvent) {
|
void ItemGraphicsScene::keyPressEvent(QKeyEvent* keyEvent) {
|
||||||
const auto key = keyEvent->key();
|
const auto key = keyEvent->key();
|
||||||
|
|
||||||
if (key == Qt::Key_Escape) {
|
if (key == Qt::Key_Escape && !this->selectedByteItemsByAddress.empty()) {
|
||||||
this->clearByteItemSelection();
|
this->clearByteItemSelection();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user