From 36c0ce9ade93221c7bef194e2a3a4a9b7a969e41 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 21 Dec 2015 08:01:06 +0100 Subject: gui.iu: better doc --- ranger/gui/ui.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ranger') diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index b006e671..2eacbc4d 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -22,11 +22,11 @@ def _setup_mouse(signal): curses.mouseinterval(0) ## this line solves this problem: - ## If an action, following a mouse click, includes the - ## suspension and re-initializion of the ui (e.g. running a - ## file by clicking on its preview) and the next key is another - ## mouse click, the bstate of this mouse event will be invalid. - ## (atm, invalid bstates are recognized as scroll-down) + ## If a mouse click triggers an action that disables curses and + ## starts curses again, (e.g. running a ## file by clicking on its + ## preview) and the next key is another mouse click, the bstate of this + ## mouse event will be invalid. (atm, invalid bstates are recognized + ## as scroll-down, so this avoids an errorneous scroll-down action) curses.ungetmouse(0,0,0,0,0) else: curses.mousemask(0) -- cgit 1.4.1-2-gfad0