vcl/unx/gtk3/gtk3gtkframe.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 916fe7fa8f12d32e5303420f4f1b28d2a8ec8ff1 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Aug 25 10:41:11 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Aug 25 12:56:01 2020 +0200 Resolves: tdf#135965 distinguish between press and release Change-Id: I537d052e80875d75334cfc72c93fd7d90bf2f888 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101312 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 4e028c6ad180..20a863c34f5b 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -3191,7 +3191,9 @@ gboolean GtkSalFrame::signalKey(GtkWidget* pWidget, GdkEventKey* pEvent, gpointe GtkWidgetClass* pWindowClass = GTK_WIDGET_CLASS(pClass); // if the focus is not in our main widget, see if there is a handler // for this key stroke in GtkWindow first - bool bHandled = pWindowClass->key_press_event(pThis->m_pWindow, pEvent); + bool bHandled = pEvent->type == GDK_KEY_PRESS + ? pWindowClass->key_press_event(pThis->m_pWindow, pEvent) + : pWindowClass->key_release_event(pThis->m_pWindow, pEvent); g_type_class_unref(pClass); if (bHandled) return true; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits