Carsten Driesner wrote:
Hi Eric and Philipp,

Fortunately we store no numerical values for the keyboard configuration in documents. Instead we use predefined strings which will be mapped to the correct com.sun.star.awt or VCL key code (e.g. "KEY_A" => keycode 0x0030). Therefore I don't see a problem changing the identifier. Creating a new identifier can only work for new version. Older version should ignore these identifier, although I am not completely sure. You can find the sources for the keyboard shortcuts here:
framework/source/xml/acceleratorconfigurationreader.cxx
framework/source/xml/acceleratorconfigurationwriter.cxx
framework/source/accelerators/keymapping.cxx

So this must be a limitation that went away with the binary format. That's a relief.

So basically what we want to do is remove the #ifdef MACOSX from keycodes.hxx and "invent" KEY_MOD5 for all platforms. Only the KEY_MOD5 may not be the best choice of name, i'd vote for KEY_MOD3 so we would have them in ascending order. By the way the key codes are part of the OpenOffice API (see offapi/com/sun/star/awt/KeyModifier.idl). This would have to go in there, too, else the value cannot be scripted.

Kind regards, pl

--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
     -- Author unknown

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to