From 1f05d37b209470c179b6d00f888ac39ffd14bcf4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 20 Mar 2020 02:44:59 +0200 Subject: [PATCH] pgui: Ignore PGEntry tab keypress Closes #885 --- panda/src/pgui/pgEntry.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/pgui/pgEntry.cxx b/panda/src/pgui/pgEntry.cxx index b6a86754d7..c729a23038 100644 --- a/panda/src/pgui/pgEntry.cxx +++ b/panda/src/pgui/pgEntry.cxx @@ -203,6 +203,11 @@ press(const MouseWatcherParameter ¶m, 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() ||