File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ void ImStudio::BufferWindow::drawall()
30
30
31
31
// HOTKEY: ALT + M - "Add" Context Menu
32
32
if ((ImGui::IsWindowHovered ()) &&
33
- ((ImGui::IsKeyPressed (ImGuiKey_ModAlt) && (ImGui::IsKeyPressed (ImGuiKey_M))) ||
33
+ ((ImGui::IsKeyDown (ImGuiKey_ModAlt) && (ImGui::IsKeyPressed (ImGuiKey_M))) ||
34
34
(ImGui::IsWindowHovered () && ImGui::IsMouseClicked (1 ))))
35
35
{
36
36
ImGui::OpenPopup (" bwcontextmenu" );
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ void ImStudio::GUI::ShowProperties()
105
105
ImGui::NewLine ();
106
106
107
107
// HOTKEY: CTRL + E - Focus on property field
108
- if (ImGui::IsKeyPressed (ImGuiKey_ModCtrl) && (ImGui::IsKeyPressed (ImGuiKey_E)))
108
+ if (ImGui::IsKeyDown (ImGuiKey_ModCtrl) && (ImGui::IsKeyPressed (ImGuiKey_E)))
109
109
{
110
110
ImGui::SetKeyboardFocusHere ();
111
111
}
You can’t perform that action at this time.
0 commit comments