Deselect first char in Move Type-in and ICS Input Box
[xboard.git] / dialogs.c
index 6455f74..22577e7 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -1181,6 +1181,7 @@ ICSInputBoxPopUp ()
     MarkMenu("View.ICSInputBox", InputBoxDlg);
     if(GenericPopUp(boxOptions, _("ICS input box"), InputBoxDlg, BoardWindow, NONMODAL, 0))
        AddHandler(&boxOptions[0], InputBoxDlg, 3);
+    CursorAtEnd(&boxOptions[0]);
 }
 
 void
@@ -1212,6 +1213,7 @@ PopUpMoveDialog (char firstchar)
     buf[0] = firstchar; ASSIGN(icsText, buf);
     if(GenericPopUp(typeOptions, _("Type a move"), TransientDlg, BoardWindow, MODAL, 0))
        AddHandler(&typeOptions[0], TransientDlg, 2);
+    CursorAtEnd(&typeOptions[0]);
 }
 
 void