comparison browser_side/panels.py @ 249:c24715dcd2f6

browser_side: set the "workaround" timers to 5 ms instead of 10: - for register and login dialog - for input history cursor position
author souliane <souliane@mailoo.org>
date Fri, 08 Nov 2013 20:50:11 +0100
parents d7c41c84d062
children da0487f0a2e7
comparison
equal deleted inserted replaced
248:8fdd20399a06 249:c24715dcd2f6
219 219
220 self._timer.schedule(2000) 220 self._timer.schedule(2000)
221 221
222 def history_cb(text): 222 def history_cb(text):
223 self.setText(text) 223 self.setText(text)
224 Timer(10, lambda: self.setCursorPos(len(text))) 224 Timer(5, lambda: self.setCursorPos(len(text)))
225 225
226 # if keycode == KEY_ENTER and not self.visible: 226 # if keycode == KEY_ENTER and not self.visible:
227 if keycode == KEY_ENTER: 227 if keycode == KEY_ENTER:
228 if _txt: 228 if _txt:
229 target_hook, _type, msg = target 229 target_hook, _type, msg = target