summary refs log tree commit diff stats
path: root/ranger/fm.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/fm.py')
-rw-r--r--ranger/fm.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ranger/fm.py b/ranger/fm.py
index cdcfb8d7..dd74342f 100644
--- a/ranger/fm.py
+++ b/ranger/fm.py
@@ -3,6 +3,7 @@ from ranger.container import Bookmarks
 from ranger import __version__
 
 USAGE = '''%s [options] [path/filename]'''
+CTRL_C = 3
 
 class FM(Actions):
 	def __init__(self, ui = None, bookmarks = None):
@@ -35,8 +36,10 @@ class FM(Actions):
 			try:
 				self.bookmarks.reload_if_outdated()
 				self.ui.draw()
+				self.ui.finalize()
+
 				key = self.ui.get_next_key()
-				self.ui.press(key, self)
+				self.ui.handle_key(key)
 
 				gc_tick += 1
 				if gc_tick > 10:
@@ -44,4 +47,4 @@ class FM(Actions):
 					self.env.garbage_collect()
 
 			except KeyboardInterrupt:
-				self.ui.press(3, self)
+				self.ui.handle_key(CTRL_C, self)