Browse Source

pgui: Work around Windows bug with tab character in PGEntry

Fixes #994
rdb 5 years ago
parent
commit
9deb569441
1 changed files with 1 additions and 1 deletions
  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()) {