summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-23 19:49:41 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-26 11:12:47 +1000
commitdd29ee72886c34f807e8e22b87dfa5dd2d9251bd (patch)
tree346734590ed88b707b716f954c850d808639b68f /pkg/gui
parentfe64f2f4c9d79df44f31b549352eefce2b2c5c8b (diff)
convert to string in a better way because I'm pretty sure alpine needs it
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/keybindings.go3
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{} {