demo_input.py
changeset 77 fc1989059e19
parent 76 fa5301e58eca
--- a/demo_input.py	Sat Feb 02 12:54:27 2013 +0100
+++ b/demo_input.py	Sun Feb 03 16:38:41 2013 +0100
@@ -19,12 +19,12 @@
         scroll.add(self.editbox)
         self.top.add(scroll, halign='fill', valign='fill')
 
-        self.editbox.add_handler('keypress', self.on_any_input)
-        self.editbox.add_handler('mousedown', self.on_any_input)
-        self.editbox.add_handler('mouseup', self.on_any_input)
-        self.editbox.add_handler('mousewheel', self.on_any_input)
-        self.editbox.add_handler('mousemove', self.on_any_input)
-        self.editbox.add_handler('mousehover', self.on_any_input)
+        scroll.add_handler('keypress', self.on_any_input)
+        scroll.add_handler('mousedown', self.on_any_input)
+        scroll.add_handler('mouseup', self.on_any_input)
+        scroll.add_handler('mousewheel', self.on_any_input)
+        scroll.add_handler('mousemove', self.on_any_input)
+        scroll.add_handler('mousehover', self.on_any_input)
 
     def on_any_input(self, ev):
         if ev.event_name == 'keypress' and ev.keyname == 'escape':