[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 25 10:56:44 UTC 2020
vcl/unx/gtk3/gtk3gtkframe.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 916fe7fa8f12d32e5303420f4f1b28d2a8ec8ff1
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 25 10:41:11 2020 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at 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;
More information about the Libreoffice-commits
mailing list