From 2bf1362a087bc4043d838264657d5ac7755d74bc Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 20 Sep 2015 04:46:20 +0200 Subject: doc/tools/print_keys.py: print mouse events too --- doc/tools/print_keys.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/tools') diff --git a/doc/tools/print_keys.py b/doc/tools/print_keys.py index 17d2513b..fecd6fb9 100755 --- a/doc/tools/print_keys.py +++ b/doc/tools/print_keys.py @@ -9,6 +9,12 @@ sep = '; ' @wrapper def main(w): + mousemask(ALL_MOUSE_EVENTS) + mouseinterval(0) while True: - w.addstr(str(w.getch()) + sep) + ch = w.getch() + if ch == KEY_MOUSE: + w.addstr(repr(getmouse()) + sep) + else: + w.addstr(str(ch) + sep) -- cgit 1.4.1-2-gfad0 ec42c219'>this commit mirror of ranger - a simple, vim-like file managerakspecs <akspecs@tilde.institute>
about summary refs log tree commit diff stats
path: root/examples/vim_file_chooser.vim
blob: ece61ee857cf3b4f11e1ff4cef13ce04f50613a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40