[Libreoffice-commits] core.git: 2 commits - offapi/com vcl/osx

Tor Lillqvist tml at collabora.com
Mon May 5 09:41:21 PDT 2014


 offapi/com/sun/star/awt/Key.idl |    9 ++++++++-
 vcl/osx/salframe.cxx            |    7 +++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

New commits:
commit d177d160260fd901d03952832e563f5da8c30538
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon May 5 19:38:07 2014 +0300

    Document that the weirder constants are not actually keyboard keys
    
    Change-Id: I8e163e63bfbbbaa5f7f4de2151fea41d735417d0

diff --git a/offapi/com/sun/star/awt/Key.idl b/offapi/com/sun/star/awt/Key.idl
index 5c84843..09b519a 100644
--- a/offapi/com/sun/star/awt/Key.idl
+++ b/offapi/com/sun/star/awt/Key.idl
@@ -24,7 +24,8 @@
  module com {  module sun {  module star {  module awt {
 
 
-/** These values are used to specifies distinct physical keys.
+/** These values are used to specify distinct physical keys, plus
+    some special values used by the OS X implementation.
  */
 published constants Key
 {
@@ -365,6 +366,12 @@ published constants Key
     const short QUOTERIGHT = 1318;
 
 
+    /** The following values don't correspond to physical keys on any
+        keyboard but are used in the OS X implementation of VCL. They
+        correspond to some of the action messages of the NSResponder
+        abstract class.
+    */
+
     const short DELETE_TO_END_OF_PARAGRAPH = 1539;
 
 
commit 72ff5d4196bcf0ab498eef40114b449045006ca2
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon May 5 19:16:54 2014 +0300

    Add more unmapped VCL keycodes to the comment
    
    Change-Id: If417d8091896c9f6c9650cf7d6036ffacbcc0884

diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 23748fe..3bb8128 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1036,6 +1036,13 @@ OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
         aKeyMap[ KEY_DECIMAL ]  = OUString( sal_Unicode( ) );
         aKeyMap[ KEY_TILDE ]    = OUString( sal_Unicode( ) );
         aKeyMap[ KEY_QUOTELEFT ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_BRACKETLEFT ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_BRACKETRIGHT ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_SEMICOLON ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_QUOTERIGHT ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_CAPSLOCK ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_NUMLOCK ]= OUString( sal_Unicode( ) );
+        aKeyMap[ KEY_SCROLLLOCK ]= OUString( sal_Unicode( ) );
         */
 
     }


More information about the Libreoffice-commits mailing list