Explorar o código

text input does not consume button input

Kajetan Johannes Hammerle %!s(int64=3) %!d(string=hai) anos
pai
achega
18790f58ac
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      rendering/Window.cpp

+ 1 - 2
rendering/Window.cpp

@@ -115,9 +115,8 @@ static void onKey(GLFWwindow*, int key, int scancode, int action, int mods) {
     (void)mods;
     if(inputActive) {
         handleInputKey(key, action);
-    } else {
-        onButton(keyToButtonId, key, action);
     }
+    onButton(keyToButtonId, key, action);
 }
 
 static void addUnicode(uint32 codepoint) {