diff options
author | Tim Oram <dev@mitmaro.ca> | 2020-05-06 21:09:40 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2020-05-06 21:18:04 -0230 |
commit | c1ed8814ac59aa606906618a9379bc44d726349c (patch) | |
tree | 5882e4177ef82c54a12f773ab95a7102bb44e503 | |
parent | 7ccfb7a848e3c49f44fd220074560be1a4782da2 (diff) |
Add support for up key back
The up key was accidentally removed when the other special keys were
added. This adds the support for the up key.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/input/utils.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2784df4..3367902 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Added page up and down to help view - Added page up and down to show commit +- Most missing key bindings for special keys ### Changed - Change page up and page down to scroll half the height of the view area diff --git a/src/input/utils.rs b/src/input/utils.rs index f6624aa..46a2227 100644 --- a/src/input/utils.rs +++ b/src/input/utils.rs @@ -46,6 +46,7 @@ pub(super) fn curses_input_to_string(input: Input) -> String { Input::KeySLeft => String::from("ShiftLeft"), Input::KeySR => String::from("ShiftUp"), Input::KeySRight => String::from("ShiftRight"), + Input::KeyUp => String::from("Up"), _ => String::from("Other"), } } |