Просмотр исходного кода

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 7 лет назад
Родитель
Сommit
06fdcc72c8
1 измененных файлов с 1 добавлено и 1 удалено
  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;