From 0798f3c8ab5673cdea2b9cba7cfcbe6b5fef9fec Mon Sep 17 00:00:00 2001 From: akshayaurora Date: Thu, 29 Jan 2015 23:04:06 +0530 Subject: [PATCH] Remove the Clock.schedule for setting focus. It's not needed and it does not solve the actual issue it was introduced for. --- kivy/uix/behaviors.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kivy/uix/behaviors.py b/kivy/uix/behaviors.py index 27339e4aa..60c1b1aaa 100644 --- a/kivy/uix/behaviors.py +++ b/kivy/uix/behaviors.py @@ -878,10 +878,8 @@ class FocusBehavior(object): if next: self.focused = False - def _fn(dt): - next.focused = True + next.focused = True - Clock.schedule_once(_fn) return True return False