summaryrefslogtreecommitdiff
path: root/src/keys.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-02-19 13:50:27 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-02-19 13:50:27 +0100
commita453ddaf374fabf1fa9942a9d0df0d4a999ac79a (patch)
treef7f01339178dc838df102c36c47ac6c0c3a27538 /src/keys.cc
parentb08749285e76d77ebdab4ea1c56092438d953ff9 (diff)
Add support for Home/End key in prompts
Diffstat (limited to 'src/keys.cc')
-rw-r--r--src/keys.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 70853351..528e24a6 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -19,12 +19,18 @@ using KeyAndName = std::pair<String, Codepoint>;
static std::vector<KeyAndName> keynamemap = {
{ "ret", '\r' },
{ "space", ' ' },
+ { "tab", '\t' },
+ { "backspace", Key::Backspace},
{ "esc", Key::Escape },
- { "left", Key::Left },
- { "right", Key::Right },
{ "up", Key::Up },
{ "down", Key::Down},
- { "backspace", Key::Backspace}
+ { "left", Key::Left },
+ { "right", Key::Right },
+ { "pageup", Key::PageUp },
+ { "pagedown", Key::PageDown },
+ { "home", Key::Home },
+ { "end", Key::End },
+ { "backtab", Key::BackTab },
};
KeyList parse_keys(const String& str)