summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-03-06 18:41:27 +0100
committerStefan Haller <stefan@haller-berlin.de>2024-03-06 18:41:27 +0100
commitcfaf4b29d063d675ee32ce0690e357d6d587e199 (patch)
treed7c941365e508cec63ae091bd357e9e657f289d8
parent8d9e5d1258a998e60b46686e33fe36f76ce01733 (diff)
Don't strike out reserved keys in menus
It seems to cause more confusion than it helps.
-rw-r--r--pkg/gui/context/menu_context.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/pkg/gui/context/menu_context.go b/pkg/gui/context/menu_context.go
index 7f8656fe7..2158d5c7a 100644
--- a/pkg/gui/context/menu_context.go
+++ b/pkg/gui/context/menu_context.go
@@ -92,21 +92,8 @@ func (self *MenuViewModel) GetDisplayStrings(_ int, _ int) [][]string {
return displayStrings
}
- // These keys are used for general navigation so we'll strike them out to
- // avoid confusion
- reservedKeys := []string{
- self.c.UserConfig.Keybinding.Universal.Confirm,
- self.c.UserConfig.Keybinding.Universal.Select,
- self.c.UserConfig.Keybinding.Universal.Return,
- self.c.UserConfig.Keybinding.Universal.StartSearch,
- }
keyLabel := keybindings.LabelFromKey(item.Key)
- keyStyle := style.FgCyan
- if lo.Contains(reservedKeys, keyLabel) {
- keyStyle = style.FgDefault.SetStrikethrough()
- }
-
- displayStrings = utils.Prepend(displayStrings, keyStyle.Sprint(keyLabel))
+ displayStrings = utils.Prepend(displayStrings, style.FgCyan.Sprint(keyLabel))
return displayStrings
})
}