Fixed search selection and hex editor shortcuts
This commit is contained in:
parent
83bbde8d29
commit
29f50bb70b
2
external/ImGui/include/imgui_memory_editor.h
vendored
2
external/ImGui/include/imgui_memory_editor.h
vendored
@ -612,7 +612,7 @@ struct MemoryEditor
|
|||||||
ImGui::BeginChild("##scrolling");
|
ImGui::BeginChild("##scrolling");
|
||||||
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight());
|
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight());
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
DataEditingAddr = DataPreviewAddr = GotoAddr;
|
DataEditingAddr = DataPreviewAddr = DataPreviewAddrEnd = GotoAddr;
|
||||||
DataEditingTakeFocus = true;
|
DataEditingTakeFocus = true;
|
||||||
}
|
}
|
||||||
GotoAddr = (size_t)-1;
|
GotoAddr = (size_t)-1;
|
||||||
|
@ -478,13 +478,13 @@ namespace hex {
|
|||||||
saveAs();
|
saveAs();
|
||||||
return true;
|
return true;
|
||||||
} else if (mods == GLFW_MOD_CONTROL && key == GLFW_KEY_F) {
|
} else if (mods == GLFW_MOD_CONTROL && key == GLFW_KEY_F) {
|
||||||
ImGui::OpenPopup("Search");
|
View::doLater([]{ ImGui::OpenPopup("Search"); });
|
||||||
return true;
|
return true;
|
||||||
} else if (mods == GLFW_MOD_CONTROL && key == GLFW_KEY_G) {
|
} else if (mods == GLFW_MOD_CONTROL && key == GLFW_KEY_G) {
|
||||||
ImGui::OpenPopup("Goto");
|
View::doLater([]{ ImGui::OpenPopup("Goto"); });
|
||||||
return true;
|
return true;
|
||||||
} else if (mods == GLFW_MOD_CONTROL && key == GLFW_KEY_O) {
|
} else if (mods == GLFW_MOD_CONTROL && key == GLFW_KEY_O) {
|
||||||
ImGui::OpenPopup("Open File");
|
View::doLater([]{ ImGui::OpenPopup("Open File"); });
|
||||||
return true;
|
return true;
|
||||||
} else if (mods == (GLFW_MOD_CONTROL | GLFW_MOD_ALT) && key == GLFW_KEY_C) {
|
} else if (mods == (GLFW_MOD_CONTROL | GLFW_MOD_ALT) && key == GLFW_KEY_C) {
|
||||||
this->copyBytes();
|
this->copyBytes();
|
||||||
@ -915,7 +915,7 @@ R"(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (ImGui::BeginPopup("Search")) {
|
if (ImGui::BeginPopupContextVoid("Search")) {
|
||||||
ImGui::TextUnformatted("Search");
|
ImGui::TextUnformatted("Search");
|
||||||
if (ImGui::BeginTabBar("searchTabs")) {
|
if (ImGui::BeginTabBar("searchTabs")) {
|
||||||
char *currBuffer;
|
char *currBuffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user