diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-09-16 10:38:08 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-09-16 10:38:08 +0200 |
commit | 5eb37164d91628c0e8ccc56e014fa8b56f5dd946 (patch) | |
tree | f1c5b1764c81af0e5aa8712f2307a3c989f98c66 /vcl/unx | |
parent | b78a66703cc5bfa94d3fb2bbb8344220f057deed (diff) |
calc-jump-on-formula-ref-vcl.diff: Migrated
n#464359, i#101018
allow ctrl-[ and ctrl-] to jump to references used in a formula expression.
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/window/gtkframe.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/source/app/saldisp.cxx | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index e8b55ebfa895..99ac8748af8a 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -211,6 +211,8 @@ static USHORT GetKeyCode( guint keyval ) case GDK_asciitilde: nCode = KEY_TILDE; break; case GDK_leftsinglequotemark: case GDK_quoteleft: nCode = KEY_QUOTELEFT; break; + case GDK_bracketleft: nCode = KEY_BRACKETLEFT; break; + case GDK_bracketright: nCode = KEY_BRACKETRIGHT; break; // some special cases, also see saldisp.cxx // - - - - - - - - - - - - - Apollo - - - - - - - - - - - - - 0x1000 case 0x1000FF02: // apXK_Copy diff --git a/vcl/unx/source/app/saldisp.cxx b/vcl/unx/source/app/saldisp.cxx index 13a0d1093c8e..f3220c106797 100644 --- a/vcl/unx/source/app/saldisp.cxx +++ b/vcl/unx/source/app/saldisp.cxx @@ -1259,6 +1259,12 @@ XubString SalDisplay::GetKeyName( USHORT nKeyCode ) const case KEY_QUOTELEFT: nKeySym = XK_grave; break; + case KEY_BRACKETLEFT: + nKeySym = XK_bracketleft; + break; + case KEY_BRACKETRIGHT: + nKeySym = XK_bracketright; + break; default: nKeySym = 0; @@ -1589,6 +1595,14 @@ USHORT SalDisplay::GetKeyCode( KeySym keysym, char*pcPrintable ) const nKey = KEY_QUOTELEFT; *pcPrintable = '`'; break; + case XK_bracketleft: + nKey = KEY_BRACKETLEFT; + *pcPrintable = '['; + break; + case XK_bracketright: + nKey = KEY_BRACKETRIGHT; + *pcPrintable = ']'; + break; // case XK_Linefeed: // *pcPrintable = '\n'; // break; |