summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/ui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 9eab4c87..2874ee97 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -240,6 +240,8 @@ class UI(  # pylint: disable=too-many-instance-attributes,too-many-public-method
 
     def handle_input(self):
         key = self.win.getch()
+        if key == curses.KEY_ENTER:
+            key = ord('\n')
         if key == 27 or (key >= 128 and key < 256):
             # Handle special keys like ALT+X or unicode here:
             keys = [key]