1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Separate calculator and graphing calculator input

This commit is contained in:
WerWolv 2023-11-11 21:22:28 +01:00
parent 50a1956d92
commit b101d11821

View File

@ -621,7 +621,7 @@ namespace hex::plugin::builtin {
}
ImGui::PushItemWidth(-1);
ImGui::InputTextIcon("##input", ICON_VS_SYMBOL_OPERATOR, mathInput, ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_AutoSelectAll);
ImGui::InputTextIcon("##graphing_math_input", ICON_VS_SYMBOL_OPERATOR, mathInput, ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_AutoSelectAll);
ImGui::PopItemWidth();
if ((prevPos != limits.X.Min && (ImGui::IsMouseReleased(ImGuiMouseButton_Left) || ImGui::GetIO().MouseWheel != 0)) || (ImGui::IsItemFocused() && ImGui::IsKeyPressed(ImGuiKey_Enter))) {