summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 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: