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.
mine
Thomas Dy 2023-07-27 03:40:03 +09:00 committed by GitHub
parent f42f19bbce
commit 55c1905eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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])
}
}
}