From 1013395554732543ad8da72b2f0ed8895df508f8 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 1 Oct 2010 21:35:48 +0200 Subject: gui.ui: Disable mouse when console is open --- ranger/gui/ui.py | 4 ++-- 1 file 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""" -- cgit 1.4.1-2-gfad0