From e5e71cce6facab82939587c34a5698f5b3e10cce Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Fri, 24 Apr 2009 18:36:36 +0000 Subject: [PATCH] Made all of sticky key related stuffs call when the config variable is set --- direct/src/showbase/ShowBase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index fab41c986e..762b8c3654 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -76,8 +76,8 @@ class ShowBase(DirectObject.DirectObject): Verify.wantVerifyPdb = self.config.GetBool('want-verify-pdb', 0) # [gjeon] to disable sticky keys - storeAccessibilityShortcutKeys() if self.config.GetBool('disable-sticky-keys', 0): + storeAccessibilityShortcutKeys() allowAccessibilityShortcutKeys(False) self.printEnvDebugInfo() @@ -424,7 +424,8 @@ class ShowBase(DirectObject.DirectObject): This function is designed to be safe to call multiple times.""" # [gjeon] restore sticky key settings - allowAccessibilityShortcutKeys(True) + if self.config.GetBool('disable-sticky-keys', 0): + allowAccessibilityShortcutKeys(True) taskMgr.destroy()