瀏覽代碼

text input does not consume button input

Kajetan Johannes Hammerle 3 年之前
父節點
當前提交
18790f58ac
共有 1 個文件被更改,包括 1 次插入2 次删除
  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) {