summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-01 21:35:48 +0200
committerhut <hut@lavabit.com>2010-10-10 02:50:19 +0200
commit1013395554732543ad8da72b2f0ed8895df508f8 (patch)
treef1f1ce60f23c53930b762160b0fa713c767280be
parentb1105006ca6b3e14de1c997f1258a951d267e408 (diff)
downloadranger-1013395554732543ad8da72b2f0ed8895df508f8.tar.gz
gui.ui: Disable mouse when console is open
-rw-r--r--ranger/gui/ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index b0c1a352..2f27f11e 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -123,8 +123,8 @@ class UI(DisplayableContainer):
 			event = MouseEvent(curses.getmouse())
 		except _curses.error:
 			return
-
-		DisplayableContainer.click(self, event)
+		if not self.console.visible:
+			DisplayableContainer.click(self, event)
 
 	def handle_key(self, key):
 		"""Handles key input"""
ted pydoc documentation' href='/akspecs/ranger/commit/doc/pydoc/ranger.gui.widgets.browserview.html?h=v1.5.4&id=4c13e1f2d85483e026d79ab05da9f1e8e4b45293'>4c13e1f2 ^
34a60763 ^
4c13e1f2 ^




c9383c72 ^

4c13e1f2 ^





34a60763 ^

4c13e1f2 ^



c9383c72 ^

4c13e1f2 ^



c9383c72 ^

4c13e1f2 ^















4c13e1f2 ^





62cd83ba ^

4c13e1f2 ^































34a60763 ^
4c13e1f2 ^
34a60763 ^
4c13e1f2 ^




62cd83ba ^
4c13e1f2 ^


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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154