diff --git a/Terminal.Gui/Views/Button.cs b/Terminal.Gui/Views/Button.cs index 7ed27082e..1a0825c3a 100644 --- a/Terminal.Gui/Views/Button.cs +++ b/Terminal.Gui/Views/Button.cs @@ -220,5 +220,19 @@ namespace Terminal.Gui { } return false; } + + /// + public override void PositionCursor () + { + if (HotKey == Key.Unknown) { + for (int i = 0; i < base.Text.RuneCount; i++) { + if (base.Text [i] == text [0]) { + Move (i, 0); + return; + } + } + } + base.PositionCursor (); + } } }