summaryrefslogtreecommitdiffstats
path: root/scripts/generate_cheatsheet.go
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generate_cheatsheet.go')
-rw-r--r--scripts/generate_cheatsheet.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go
index 7741c783f..11a626414 100644
--- a/scripts/generate_cheatsheet.go
+++ b/scripts/generate_cheatsheet.go
@@ -59,6 +59,9 @@ func formatTitle(title string) string {
}
func formatBinding(binding *gui.Binding) string {
+ if binding.Alternative != "" {
+ return fmt.Sprintf(" <kbd>%s</kbd>: %s (%s)\n", binding.GetKey(), binding.Description, binding.Alternative)
+ }
return fmt.Sprintf(" <kbd>%s</kbd>: %s\n", binding.GetKey(), binding.Description)
}