diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-17 19:43:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-17 22:11:20 +0200 |
commit | d89a2b67ee74998b12ca7d23fb2b1717301a3f95 (patch) | |
tree | 48a2bf1959a5965be973901b97aefd4d8d248314 /vcl/unx | |
parent | 1c67a2b9044abf5f7f42ca575848d686488dc050 (diff) |
Resolves: tdf#137201 don't update IM if focus is in another widget
Change-Id: Ib5dd5a7d8b1e74655891c3ffa03f1ba77102f294
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104469
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index d14574489956..4055520fe153 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -3216,11 +3216,8 @@ gboolean GtkSalFrame::signalKey(GtkWidget* pWidget, GdkEventKey* pEvent, gpointe vcl::DeletionListener aDel( pThis ); - if( pThis->m_pIMHandler ) - { - if( pThis->m_pIMHandler->handleKeyEvent( pEvent ) ) - return true; - } + if (!bFocusInAnotherGtkWidget && pThis->m_pIMHandler && pThis->m_pIMHandler->handleKeyEvent(pEvent)) + return true; bool bStopProcessingKey = false; |