shortcuts: group the setting of key string and keycode into one function

And instead of using two key types, just use a bool to indicate whether
a keystroke involves Meta.
5 files changed