vcl/unx/gtk3/gtk3gtkinst.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 817656f12b7a3ea791d2a483cdabe201fde59ec6 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Feb 17 14:38:45 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Feb 17 16:30:59 2020 +0100 default to not selecting all on explicitly grabbing focus like vcl does, cause there are assumptions built into the writer InputEdit that this is the case Change-Id: I39358e2c82f602fe2e9a62d54d075888fe80265f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88864 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index bdaf11ffecf6..9e023d4b2c3a 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -8343,6 +8343,13 @@ public: gtk_entry_set_placeholder_text(m_pEntry, rText.toUtf8().getStr()); } + virtual void grab_focus() override + { + disable_notify_events(); + gtk_entry_grab_focus_without_selecting(m_pEntry); + enable_notify_events(); + } + virtual ~GtkInstanceEntry() override { g_signal_handler_disconnect(m_pEntry, m_nActivateSignalId); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits