소스 검색

text input does not consume button input

Kajetan Johannes Hammerle 2 년 전
부모
커밋
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) {