Explorar o código

Ensures that the cursor is inside the button, even if all the text is in lower case. (#363)

BDisp %!s(int64=5) %!d(string=hai) anos
pai
achega
501e43557c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Terminal.Gui/Views/Button.cs

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

@@ -168,7 +168,7 @@ namespace Terminal.Gui {
 
 		public override void PositionCursor ()
 		{
-			Move (hot_pos, 0);
+			Move (hot_pos == -1 ? 1 : hot_pos, 0);
 		}
 
 		bool CheckKey (KeyEvent key)