From c92207d81a270da7e1f9380786ff06148ad3cc9e Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 27 Jan 2005 00:36:53 +0000 Subject: [PATCH] added comment --- direct/src/gui/DirectEntry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/gui/DirectEntry.py b/direct/src/gui/DirectEntry.py index 1223e44229..d4619561b1 100644 --- a/direct/src/gui/DirectEntry.py +++ b/direct/src/gui/DirectEntry.py @@ -32,6 +32,9 @@ class DirectEntry(DirectFrame): ('focus', 0, self.setFocus), ('cursorKeys', 0, self.setCursorKeysActive), ('obscured', 0, self.setObscureMode), + # Setting backgroundFocus allows the entry box to get keyboard + # events that are not handled by other things (i.e. events that + # fall through to the background): ('backgroundFocus', 0, self.setBackgroundFocus), # Text used for the PGEntry text node # NOTE: This overrides the DirectFrame text option