Julien Galand wrote:
Hi,
Maybe this mail isn't appropriate in this mailing list (then tell me).
As far as I have understood, there seems to be a bug in the C++ UNO
binding of the awt::KeyEvent structure.
When using the following code snippet to set keyboard shortcuts
programmatically by the API :
http://codesnippets.services.openoffice.org/Office/Office.ManagingKeyboardShortcuts.snip
It works well when called from a script (say, automation by jscript) or
from Basic (the snippet); then the relevant field is KeyEvent.KeyCode.
But when called from C++
(XAcceleratorConfiguration.getKeyEventsByCommand, setKeyEvent, etc.), it
seems to be KeyEvent.KeyChar (either on passing or on return) !
Using this fields instead makes the snippet works in C++.
Should I report this in some way (file an issue) ? I am not familiar
with this.
Julien Galand
I very much doubt that this is directly a problem of the UNO C++
language binding. com.sun.star.awt.KeyEvent is a UNO struct that has
members KeyChar and KeyCode. Maybe you can post the failing C++ code
here (if it is not too long) and somebody with awt knowledge can spot
the real problem.
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]