changeset 290:a0c60e0c1ef2

Make forced_click grab the focus as well
author Neil Muller <drnlmuller@gmail.com>
date Thu, 15 Sep 2011 23:24:22 +0200
parents a44eabb108a5
children 7f1e8fa3d123
files mamba/widgets/base.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mamba/widgets/base.py	Thu Sep 15 23:03:24 2011 +0200
+++ b/mamba/widgets/base.py	Thu Sep 15 23:24:22 2011 +0200
@@ -90,6 +90,7 @@
 
     def forced_click(self):
         """Force calling the clicked handler"""
+        self.grab_focus()
         for callback, args in self.callbacks['clicked']:
             if callback(None, self, *args):
                 return True