aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2021-02-01 12:26:58 +0700
committerbenadha <benawiadha@gmail.com>2021-02-01 12:26:58 +0700
commitb994d74912f3f236497ed6f59b41f2423ec091d8 (patch)
treefd0cf5b7a4b05739b0540a4483a8d96ecabcb11b /epy.py
parent9cafe038debb8c7bcc48d4290eb46a94c8db600b (diff)
downloadepy-b994d74912f3f236497ed6f59b41f2423ec091d8.tar.gz
Better left click mouse in choice_win
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/epy.py b/epy.py
index 4e2f96c..0d738cc 100755
--- a/epy.py
+++ b/epy.py
@@ -944,6 +944,9 @@ def choice_win(allowdel=False):
elif mouse_event[4] == curses.BUTTON1_CLICKED\
and mouse_event[2] >= 6 and mouse_event[2] < rows-4\
and mouse_event[2] < 6+totlines:
+ if index == mouse_event[2]-6+y:
+ key_chwin = list(K["Follow"])[0]
+ continue
index = mouse_event[2]-6+y
elif mouse_event[4] == curses.BUTTON3_CLICKED:
key_chwin = list(K["Quit"])[0]