diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-20 09:49:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-20 12:04:00 +0200 |
commit | a687441abedfc659abf1cf48fa34c2f080369a4c (patch) | |
tree | 383464e674a8514c53d842963d419b3d00f730b2 /vcl/unx | |
parent | ccd6415902ab2fd35658cb28258e0a7ce935d376 (diff) |
Resolves: tdf#154623 KEY_DECIMAL == GDK_KEY_KP_Decimal or GDK_KEY_KP_Separator
Change-Id: Iade6d3f93ff7f9dcc35c5a04e21617df06955527
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150676
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 5bca492629de..f4fd53618960 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -2482,8 +2482,9 @@ GtkWindow* get_active_window() void LocalizeDecimalSeparator(guint& keyval) { - // #i1820# use locale specific decimal separator - if (keyval == GDK_KEY_KP_Decimal && Application::GetSettings().GetMiscSettings().GetEnableLocalizedDecimalSep()) + const bool bDecimalKey = keyval == GDK_KEY_KP_Decimal || keyval == GDK_KEY_KP_Separator; + // #i1820# (and tdf#154623) use locale specific decimal separator + if (bDecimalKey && Application::GetSettings().GetMiscSettings().GetEnableLocalizedDecimalSep()) { GtkWindow* pFocusWin = get_active_window(); GtkWidget* pFocus = pFocusWin ? gtk_window_get_focus(pFocusWin) : nullptr; |