1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Escape to deselect bytes not working

This commit is contained in:
WerWolv 2023-12-19 00:03:00 +01:00
parent eb21a5992f
commit 8fe490ed03

View File

@ -774,7 +774,9 @@ namespace hex::plugin::builtin {
this->m_selectionStart->reset();
this->m_selectionEnd->reset();
EventRegionSelected::post(ImHexApi::HexEditor::ProviderRegion{ this->getSelection(), provider });
this->m_hexEditor.setSelectionUnchecked(std::nullopt, std::nullopt);
EventRegionSelected::post(ImHexApi::HexEditor::ProviderRegion{ Region::Invalid(), provider });
});
ShortcutManager::addShortcut(this, Keys::Enter, "hex.builtin.view.hex_editor.shortcut.enter_editing", [this] {