diff --git a/plugins/Cardinal/src/ImGuiWidget.cpp b/plugins/Cardinal/src/ImGuiWidget.cpp index b58bd76..78302a7 100644 --- a/plugins/Cardinal/src/ImGuiWidget.cpp +++ b/plugins/Cardinal/src/ImGuiWidget.cpp @@ -215,7 +215,7 @@ void ImGuiWidget::onButton(const ButtonEvent& e) return; } - io.KeyCtrl = e.mods & GLFW_MOD_CTRL; + io.KeyCtrl = e.mods & GLFW_MOD_CONTROL; io.KeyShift = e.mods & GLFW_MOD_SHIFT; io.KeyAlt = e.mods & GLFW_MOD_ALT; io.KeySuper = e.mods & GLFW_MOD_SUPER; @@ -245,7 +245,7 @@ void ImGuiWidget::onSelectKey(const SelectKeyEvent& e) return; } - io.KeyCtrl = e.mods & GLFW_MOD_CTRL; + io.KeyCtrl = e.mods & GLFW_MOD_CONTROL; io.KeyShift = e.mods & GLFW_MOD_SHIFT; io.KeyAlt = e.mods & GLFW_MOD_ALT; io.KeySuper = e.mods & GLFW_MOD_SUPER; diff --git a/src/CardinalUI.cpp b/src/CardinalUI.cpp index 440fd60..02be1ec 100644 --- a/src/CardinalUI.cpp +++ b/src/CardinalUI.cpp @@ -514,7 +514,7 @@ protected: bool onCharacterInput(const CharacterInputEvent& ev) override { - if (ev.character <= ' ' || ev.character >= kKeyDelete) + if (ev.character < ' ' || ev.character >= kKeyDelete) return false; const int mods = glfwMods(ev.mod);