Fixed hex editor selection to act weird on right click
This commit is contained in:
parent
e4879f7546
commit
12a36d08e2
@ -412,10 +412,10 @@ struct MemoryEditor
|
|||||||
if (ImGui::IsMouseDoubleClicked(0)) {
|
if (ImGui::IsMouseDoubleClicked(0)) {
|
||||||
DataEditingTakeFocus = true;
|
DataEditingTakeFocus = true;
|
||||||
data_editing_addr_next = addr;
|
data_editing_addr_next = addr;
|
||||||
} else {
|
|
||||||
DataPreviewAddr = addr;
|
|
||||||
DataPreviewAddrEnd = addr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DataPreviewAddr = addr;
|
||||||
|
DataPreviewAddrEnd = addr;
|
||||||
}
|
}
|
||||||
if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) {
|
if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) {
|
||||||
DataPreviewAddrEnd = addr;
|
DataPreviewAddrEnd = addr;
|
||||||
@ -472,10 +472,11 @@ struct MemoryEditor
|
|||||||
if (ImGui::IsMouseDoubleClicked(0)) {
|
if (ImGui::IsMouseDoubleClicked(0)) {
|
||||||
DataEditingTakeFocus = true;
|
DataEditingTakeFocus = true;
|
||||||
data_editing_addr_next = addr;
|
data_editing_addr_next = addr;
|
||||||
} else {
|
|
||||||
DataPreviewAddr = addr;
|
|
||||||
DataPreviewAddrEnd = addr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DataPreviewAddr = addr;
|
||||||
|
DataPreviewAddrEnd = addr;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) {
|
if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) {
|
||||||
DataPreviewAddrEnd = addr;
|
DataPreviewAddrEnd = addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user