diff options
author | hut <hut@lavabit.com> | 2010-10-01 21:35:48 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-01 21:35:48 +0200 |
commit | 2d98e85fddaefbc6074336d7d90925f7f7f936b0 (patch) | |
tree | 17d299068adeb83920032d643fb723e6f8bd34df /ranger | |
parent | 473daebb6870a54fe4b47529e77be698a2edfdb3 (diff) | |
download | ranger-2d98e85fddaefbc6074336d7d90925f7f7f936b0.tar.gz |
gui.ui: Disable mouse when console is open
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/ui.py | 4 |
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""" |