소스 검색

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

BDisp 5 년 전
부모
커밋
501e43557c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)