diff options
author | toonn <toonn@toonn.io> | 2019-06-18 13:01:21 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-06-18 13:01:21 +0200 |
commit | 9ce8a9d9c39ab63736c8df112cbaaad0a38def23 (patch) | |
tree | 08a58d3bb56ef9f9096bf5a5336e38da6905c7b1 | |
parent | 45f1a8a11edf83f5f0dcc4bce20f554111f4ad26 (diff) | |
parent | 177f21211d456248429a6ae394edf63d4ebbd040 (diff) | |
download | ranger-9ce8a9d9c39ab63736c8df112cbaaad0a38def23.tar.gz |
Merge branch 'key_enter'
-rw-r--r-- | ranger/gui/ui.py | 2 |
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] |