mirror of https://github.com/WerWolv/ImHex
fix: Reset selected row after checking it
This commit is contained in:
parent
7922d3b3cb
commit
ab0fb3131d
|
|
@ -440,10 +440,6 @@ namespace hex::plugin::builtin {
|
||||||
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
if (ImGui::IsKeyPressed(ImGuiKey_Escape)) {
|
|
||||||
m_selectedEntryName.reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle copying the value to the clipboard when clicking the row
|
// Handle copying the value to the clipboard when clicking the row
|
||||||
if (ImGui::Selectable("##InspectorLine", m_selectedEntryName == entry.unlocalizedName, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap)) {
|
if (ImGui::Selectable("##InspectorLine", m_selectedEntryName == entry.unlocalizedName, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap)) {
|
||||||
m_selectedEntryName = entry.unlocalizedName;
|
m_selectedEntryName = entry.unlocalizedName;
|
||||||
|
|
@ -452,6 +448,10 @@ namespace hex::plugin::builtin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui::IsKeyPressed(ImGuiKey_Escape)) {
|
||||||
|
m_selectedEntryName.reset();
|
||||||
|
}
|
||||||
|
|
||||||
// Enter editing mode when double-clicking the row
|
// Enter editing mode when double-clicking the row
|
||||||
const bool editable = entry.editingFunction.has_value() && m_selectedProvider->isWritable();
|
const bool editable = entry.editingFunction.has_value() && m_selectedProvider->isWritable();
|
||||||
if (ImGui::IsItemHovered()) {
|
if (ImGui::IsItemHovered()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue