From 55c1905eb167f0bab4a48b48572579e128d3dad5 Mon Sep 17 00:00:00 2001 From: Thomas Dy Date: Thu, 27 Jul 2023 03:40:03 +0900 Subject: [PATCH] Only apply keyConv to mnemonic in menus (#2161) This fixes an issue where namespaces with "alt" in the name get replaced by "opt" when running on macOS. --- internal/ui/menu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/menu.go b/internal/ui/menu.go index 4e2082f097..41c02b8400 100644 --- a/internal/ui/menu.go +++ b/internal/ui/menu.go @@ -148,7 +148,7 @@ func (m *Menu) buildMenuTable(hh model.MenuHints, table []model.MenuHints, colCo func (m *Menu) layout(table []model.MenuHints, mm []int, out [][]string) { for r := range table { for c := range table[r] { - out[r][c] = keyConv(m.formatMenu(table[r][c], mm[c])) + out[r][c] = m.formatMenu(table[r][c], mm[c]) } } }