Patch 8.0.1434
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)
Files: src/gui_gtk.c
*** ../vim-8.0.1433/src/gui_gtk.c 2017-09-22 14:35:46.592623416 +0200
--- src/gui_gtk.c 2018-01-28 15:33:14.840280155 +0100
***************
*** 2193,2198 ****
--- 2193,2207 ----
#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;
}
*** ../vim-8.0.1433/src/version.c 2018-01-27 21:01:30.242242117 +0100
--- src/version.c 2018-01-28 15:34:41.863616590 +0100
***************
*** 773,774 ****
--- 773,776 ----
{ /* Add new patch number below this line */
+ /**/
+ 1434,
/**/
--
hundred-and-one symptoms of being an internet addict:
265. Your reason for not staying in touch with family is that
they do not have e-mail addresses.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.