diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-25 10:41:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-25 12:56:01 +0200 |
commit | 916fe7fa8f12d32e5303420f4f1b28d2a8ec8ff1 (patch) | |
tree | cd4474d9ff43ba25aaeb3dd73ff4f01d64a8fdbd | |
parent | 6cea898268e654c9c3ded70836239c5c6def12fa (diff) |
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@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; |