summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-06-18 13:01:21 +0200
committertoonn <toonn@toonn.io>2019-06-18 13:01:21 +0200
commit9ce8a9d9c39ab63736c8df112cbaaad0a38def23 (patch)
tree08a58d3bb56ef9f9096bf5a5336e38da6905c7b1
parent45f1a8a11edf83f5f0dcc4bce20f554111f4ad26 (diff)
parent177f21211d456248429a6ae394edf63d4ebbd040 (diff)
downloadranger-9ce8a9d9c39ab63736c8df112cbaaad0a38def23.tar.gz
Merge branch 'key_enter'
-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]