about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/console.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index d241d4cd..777ef3f6 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -165,10 +165,12 @@ class Console(Widget):
 			try:
 				chrkey = chr(keytuple[0])
 			except:
+				pass
+			else:
+				self.type_key(chrkey)
+			finally:
+				self.env.key_clear()
 				return
-			self.type_key(chrkey)
-			self.env.key_clear()
-			return
 
 		if cmd == self.commandlist.dummy_object:
 			return