diff --git a/kivy/uix/textinput.py b/kivy/uix/textinput.py index b6ca83962..25201ae0f 100644 --- a/kivy/uix/textinput.py +++ b/kivy/uix/textinput.py @@ -227,7 +227,6 @@ class Selector(ButtonBehavior, Image): def __init__(self, **kwargs): super(Selector, self).__init__(**kwargs) - self.window.bind(on_touch_down=self.on_window_touch_down) self.matrix = self.target.get_window_matrix() with self.canvas.before: @@ -250,8 +249,8 @@ class Selector(ButtonBehavior, Image): touch.apply_transform_2d( lambda x, y: matrix.transform_point(x, y, 0)[:2]) - def on_window_touch_down(self, win, touch): - if self.parent is not win: + def on_touch_down(self, touch): + if self.parent is not EventLoop.window: return try: