ソースを参照

pgui: Work around Windows bug with tab character in PGEntry

Fixes #994
rdb 5 年 前
コミット
9deb569441
1 ファイル変更1 行追加1 行削除
  1. 1 1
      panda/src/pgui/pgEntry.cxx

+ 1 - 1
panda/src/pgui/pgEntry.cxx

@@ -321,7 +321,7 @@ keystroke(const MouseWatcherParameter &param, bool background) {
 
       int keycode = param.get_keycode();
 
-      if (!isascii(keycode) || isprint(keycode)) {
+      if ((!isascii(keycode) || isprint(keycode)) && keycode != '\t') {
         // A normal visible character.  Add a new character to the text entry,
         // if there's room.
         if (!_candidate_wtext.empty()) {