Skip to content

Commit b389144

Browse files
committed
IsKeyPressed -> IsKeyDown
1 parent df528ac commit b389144

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sources/ims_buffer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void ImStudio::BufferWindow::drawall()
3030

3131
//HOTKEY: ALT + M - "Add" Context Menu
3232
if ((ImGui::IsWindowHovered()) &&
33-
((ImGui::IsKeyPressed(ImGuiKey_ModAlt) && (ImGui::IsKeyPressed(ImGuiKey_M))) ||
33+
((ImGui::IsKeyDown(ImGuiKey_ModAlt) && (ImGui::IsKeyPressed(ImGuiKey_M))) ||
3434
(ImGui::IsWindowHovered() && ImGui::IsMouseClicked(1))))
3535
{
3636
ImGui::OpenPopup("bwcontextmenu");

src/sources/ims_gui_properties.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void ImStudio::GUI::ShowProperties()
105105
ImGui::NewLine();
106106

107107
//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)))
109109
{
110110
ImGui::SetKeyboardFocusHere();
111111
}

0 commit comments

Comments
 (0)