diff options
author | hut <hut@lavabit.com> | 2010-04-08 01:05:03 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-08 01:05:03 +0200 |
commit | 4e9384fd9ebcf1c17909dbf2b1e94f0b3ec9100b (patch) | |
tree | f3deb6b463eb3087ed517e98bb655e7386e9dc7f | |
parent | cd5b1c41724103bce26ab2f66908a5f86cdc04d5 (diff) | |
download | ranger-4e9384fd9ebcf1c17909dbf2b1e94f0b3ec9100b.tar.gz |
clean up
-rw-r--r-- | ranger/defaults/keys.py | 3 | ||||
-rw-r--r-- | test/tc_newkeys.py | 3 |
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() |