diff --git a/src/keys.cc b/src/keys.cc index 4170ce982f..0e8310125d 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -62,16 +62,20 @@ Optional Key::codepoint() const struct KeyAndName { const char* name; Codepoint key; }; static constexpr KeyAndName keynamemap[] = { { "ret", Key::Return }, + { "spc", Key::Space }, { "space", Key::Space }, { "tab", Key::Tab }, { "lt", '<' }, { "gt", '>' }, + { "bspc", Key::Backspace}, { "backspace", Key::Backspace}, { "esc", Key::Escape }, { "up", Key::Up }, { "down", Key::Down}, { "left", Key::Left }, { "right", Key::Right }, + { "pgup", Key::PageUp }, + { "pgdn", Key::PageDown }, { "pageup", Key::PageUp }, { "pagedown", Key::PageDown }, { "home", Key::Home }, @@ -80,10 +84,14 @@ static constexpr KeyAndName keynamemap[] = { { "del", Key::Delete }, { "plus", '+' }, { "minus", '-' }, + { "semi", ';' }, { "semicolon", ';' }, + { "perc", '%' }, { "percent", '%' }, { "quote", '\'' }, { "dquote", '"' }, + { "fin", Key::FocusIn }, + { "fout", Key::FocusOut }, { "focus_in", Key::FocusIn }, { "focus_out", Key::FocusOut }, };