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_ - if a cookie is a http-only cookie domain is prepended with a #HttpOnly_
- Zoom with ctrl + mousewheel - Zoom with ctrl + mousewheel
- Close tabs on right click - Close tabs on right click
- Up/Down not for history
- search highlighting - search highlighting
- max height for completion (be smaller if possible) - max height for completion (be smaller if possible)
- tab should directly insert word and space if there's only one option - 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( ('keybind.command', sect.ValueList(
types.KeyBindingName(), types.KeyBinding(), types.KeyBindingName(), types.KeyBinding(),
('<Escape>', 'leave-mode'), ('<Escape>', 'leave-mode'),
('<Ctrl-N>', 'leave-mode'), ('<Ctrl-P>', 'command-history-prev'),
('<Up>', 'command-history-prev'), ('<Ctrl-N>', 'command-history-next'),
('<Down>', 'command-history-next'),
('<Shift-Tab>', 'completion-item-prev'), ('<Shift-Tab>', 'completion-item-prev'),
('<Up>', 'completion-item-prev'),
('<Tab>', 'completion-item-next'), ('<Tab>', 'completion-item-next'),
('<Down>', 'completion-item-next'),
('<Return>', 'command-accept'), ('<Return>', 'command-accept'),
('<Ctrl-B>', 'rl-backward-char'), ('<Ctrl-B>', 'rl-backward-char'),
('<Ctrl-F>', 'rl-forward-char'), ('<Ctrl-F>', 'rl-forward-char'),
@ -718,7 +719,6 @@ DATA = OrderedDict([
('keybind.prompt', sect.ValueList( ('keybind.prompt', sect.ValueList(
types.KeyBindingName(), types.KeyBinding(), types.KeyBindingName(), types.KeyBinding(),
('<Escape>', 'leave-mode'), ('<Escape>', 'leave-mode'),
('<Ctrl-N>', 'leave-mode'),
('<Return>', 'prompt-accept'), ('<Return>', 'prompt-accept'),
('y', 'prompt-yes'), ('y', 'prompt-yes'),
('n', 'prompt-no'), ('n', 'prompt-no'),