Skip to content

Commit 33d4ab1

Browse files
committed
Merge pull request kivy#3673 from ngoonee/patch-3
Add a focusable check to _on_focus
2 parents eba9fc0 + 3652c5c commit 33d4ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kivy/uix/behaviors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ def _on_focusable(self, instance, value):
856856
self.focus = False
857857

858858
def _on_focus(self, instance, value, *largs):
859-
if self.keyboard_mode == 'auto':
859+
if self.is_focusable and self.keyboard_mode == 'auto':
860860
if value:
861861
self._bind_keyboard()
862862
else:

0 commit comments

Comments
 (0)