Problem: GTK: :promtfind does not put focus on text input. (Adam Novak)
Solution: When re-opening the dialog put focus on the text input. (Kazunobu
Kuriyama, closes #2563)
#endif
}
gtk_window_present(GTK_WINDOW(frdp->dialog));
+
+ /* For :promptfind dialog, always give keyboard focus to 'what' entry.
+ * For :promptrepl dialog, give it to 'with' entry if 'what' has an
+ * non-empty entry; otherwise, to 'what' entry. */
+ gtk_widget_grab_focus(frdp->what);
+ if (do_replace && gtk_entry_get_text_length(GTK_ENTRY(frdp->what)))
+ gtk_widget_grab_focus(frdp->with);
+
+
vim_free(entry_text);
return;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1434,
/**/
1433,
/**/