Skip to content

Commit

Permalink
Only apply keyConv to mnemonic in menus (derailed#2161)
Browse files Browse the repository at this point in the history
This fixes an issue where namespaces with "alt" in the name get replaced
by "opt" when running on macOS.
  • Loading branch information
thatsmydoing authored Jul 26, 2023
1 parent 5d5fba7 commit 82eeafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ui/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
}
}
Expand Down

0 comments on commit 82eeafe

Please sign in to comment.