From 9deb56944105c71b49a1b9d34fd085ce6b110e4b Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 21 Aug 2020 14:29:27 +0200 Subject: [PATCH] pgui: Work around Windows bug with tab character in PGEntry Fixes #994 --- panda/src/pgui/pgEntry.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgui/pgEntry.cxx b/panda/src/pgui/pgEntry.cxx index b6a86754d7..97d200f8e1 100644 --- a/panda/src/pgui/pgEntry.cxx +++ b/panda/src/pgui/pgEntry.cxx @@ -321,7 +321,7 @@ keystroke(const MouseWatcherParameter ¶m, 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()) {