summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-12-13 00:46:27 +0100
committerAndras Timar <atimar@suse.com>2011-12-13 14:57:51 +0100
commitd0b0dabaa949cf279420c3770265acc4f8532bfa (patch)
tree2be967ffab45553fd47e107de2910ff6444a2f79 /vcl
parent039d4b20e14a71ec82eb4e53c69eda3feb33ab0e (diff)
fdo#30714 Use different default key bindings for Hungarian locale
Mimic Hungarian Excel's key bindings: * inserting current date is Ctrl-'.' * inserting current time is Ctrl-Shift-'.' Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/app/saldisp.cxx3
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 07eef831b825..3c53b7b0c968 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -1125,7 +1125,7 @@ rtl::OUString SalDisplay::GetKeyName( sal_uInt16 nKeyCode ) const
nKeySym = XK_slash;
break;
case KEY_POINT:
- nKeySym = XK_period;
+ aCustomKeyName = '.';
break;
case KEY_COMMA:
nKeySym = XK_comma;
@@ -1467,6 +1467,7 @@ sal_uInt16 SalDisplay::GetKeyCode( KeySym keysym, char*pcPrintable ) const
break;
case XK_period:
nKey = KEY_POINT;
+ *pcPrintable = '.';
break;
case XK_comma:
nKey = KEY_COMMA;
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index ec318c949f9c..2e1c1068c890 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -215,7 +215,7 @@ static sal_uInt16 GetKeyCode( guint keyval )
case GDK_KP_Multiply: nCode = KEY_MULTIPLY; break;
case GDK_slash:
case GDK_KP_Divide: nCode = KEY_DIVIDE; break;
- case GDK_period:
+ case GDK_period: nCode = KEY_POINT; break;
case GDK_decimalpoint: nCode = KEY_POINT; break;
case GDK_comma: nCode = KEY_COMMA; break;
case GDK_less: nCode = KEY_LESS; break;