Explorar o código

Always use an upper character for hotkey

MenuItem's hotkey should always use an upper character as
`Menu::ProcessKey()` always matches with an upper character.
Sang Kil Cha %!s(int64=7) %!d(string=hai) anos
pai
achega
06fdcc72c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Terminal.Gui/Views/Menu.cs

+ 1 - 1
Terminal.Gui/Views/Menu.cs

@@ -35,7 +35,7 @@ namespace Terminal.Gui {
 					nextIsHot = true;
 				else {
 					if (nextIsHot) {
-						HotKey = x;
+						HotKey = Char.ToUpper ((char)x);
 						break;
 					}
 					nextIsHot = false;