Use arrow keys for completion items

This commit is contained in:
Florian Bruhin 2014-05-22 10:54:18 +02:00
parent 2bcf46194b
commit d1b947279e
2 changed files with 4 additions and 5 deletions

1
TODO
View File

@ -56,7 +56,6 @@ Improvements / minor features
- if a cookie is a http-only cookie domain is prepended with a #HttpOnly_
- Zoom with ctrl + mousewheel
- Close tabs on right click
- Up/Down not for history
- search highlighting
- max height for completion (be smaller if possible)
- tab should directly insert word and space if there's only one option

View File

@ -696,11 +696,12 @@ DATA = OrderedDict([
('keybind.command', sect.ValueList(
types.KeyBindingName(), types.KeyBinding(),
('<Escape>', 'leave-mode'),
('<Ctrl-N>', 'leave-mode'),
('<Up>', 'command-history-prev'),
('<Down>', 'command-history-next'),
('<Ctrl-P>', 'command-history-prev'),
('<Ctrl-N>', 'command-history-next'),
('<Shift-Tab>', 'completion-item-prev'),
('<Up>', 'completion-item-prev'),
('<Tab>', 'completion-item-next'),
('<Down>', 'completion-item-next'),
('<Return>', 'command-accept'),
('<Ctrl-B>', 'rl-backward-char'),
('<Ctrl-F>', 'rl-forward-char'),
@ -718,7 +719,6 @@ DATA = OrderedDict([
('keybind.prompt', sect.ValueList(
types.KeyBindingName(), types.KeyBinding(),
('<Escape>', 'leave-mode'),
('<Ctrl-N>', 'leave-mode'),
('<Return>', 'prompt-accept'),
('y', 'prompt-yes'),
('n', 'prompt-no'),