From e0bc0ff6017ccf4fb55ed400266161d4c0131435 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 18 Apr 2010 19:31:16 +0200 Subject: gui.ui: fixed key --- 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 3ac45ebe..a2a54d9e 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -190,9 +190,9 @@ class UI(DisplayableContainer): curses.flushinp() else: # Handle simple key presses, CTRL+X, etc here: - if self.settings.flushinput: - curses.flushinp() if key > 0: + if self.settings.flushinput: + curses.flushinp() if key == curses.KEY_MOUSE: self.handle_mouse() elif key == curses.KEY_RESIZE: -- cgit 1.4.1-2-gfad0