Browse Source

pgui: Ignore PGEntry tab keypress

Closes #885
Daniel 5 years ago
parent
commit
1f05d37b20
1 changed files with 5 additions and 0 deletions
  1. 5 0
      panda/src/pgui/pgEntry.cxx

+ 5 - 0
panda/src/pgui/pgEntry.cxx

@@ -203,6 +203,11 @@ press(const MouseWatcherParameter &param, bool background) {
 
       ButtonHandle button = param.get_button();
 
+      if (button == KeyboardButton::tab()) {
+        // Tab. Ignore the entry.
+        return;
+      }
+
       if (button == MouseButton::one() ||
           button == MouseButton::two() ||
           button == MouseButton::three() ||