summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/keys.py3
-rw-r--r--test/tc_newkeys.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index c3a2d475..70521e1e 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -227,6 +227,7 @@ map('<C-U>', 'u', wdg.move(up=0.5, pages=True))
 map('<C-F>', 'f', '<pagedown>', wdg.move(down=1, pages=True))
 map('<C-B>', 'b', '<pageup>', wdg.move(up=1, pages=True))
 map('<space>', wdg.move(down=0.8, pages=True))
+map('<cr>', wdg.move(down=1))
 
 # ---------------------------------------------------------- others
 map('E', fm.edit_file())
@@ -302,5 +303,3 @@ map('<end>', dir=Direction(down=-1, absolute=True))
 map('<pagedown>', dir=Direction(down=1, pages=True))
 map('<pageup>', dir=Direction(down=-1, pages=True))
 map('%', dir=Direction(down=1, percentage=True, absolute=True))
-map('<space>', dir=Direction(down=1, pages=True))
-map('<CR>', dir=Direction(down=1))
diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py
index b1cb42fb..a79ba83f 100644
--- a/test/tc_newkeys.py
+++ b/test/tc_newkeys.py
@@ -492,7 +492,7 @@ class Test(PressTestCase):
 		s.replace('Y')
 		self.assertNotEqual(t._tree, u._tree)
 
-	def test_keymap_with_context(self):
+	def test_keymanager(self):
 		def func(arg):
 			return 5
 		def getdown(arg):
@@ -530,4 +530,5 @@ class Test(PressTestCase):
 		kmc.use_context('bar')
 		self.assertEqual(1, press('j'))
 
+
 if __name__ == '__main__': main()