diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-23 19:49:41 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-26 11:12:47 +1000 |
commit | dd29ee72886c34f807e8e22b87dfa5dd2d9251bd (patch) | |
tree | 346734590ed88b707b716f954c850d808639b68f | |
parent | fe64f2f4c9d79df44f31b549352eefce2b2c5c8b (diff) |
convert to string in a better way because I'm pretty sure alpine needs it
-rw-r--r-- | pkg/gui/keybindings.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 382046fb3..31738a419 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1,6 +1,7 @@ package gui import ( + "fmt" "log" "strings" @@ -175,7 +176,7 @@ func GetKeyDisplay(key interface{}) string { keyInt = int(key) } - return string(keyInt) + return fmt.Sprintf("%c", keyInt) } func (gui *Gui) getKey(name string) interface{} { |