Bock, Arne wrote:
hello, i would like to disable pressing 'F1' opening the OOo-helpwindow.
i found a way to dispatch the 'HelpIndex'-command which is sent when you
use the menu-item. but still users can hit F1 and it behaves as usual.

when i record a macro and use the menu to open the help-window, a
DispatchHelper is called to execute: (document, ".uno:HelpIndex", "", 0,
Array()) - but using F1 instead does not result in calling the
execute-dipatch-method at all.

the background is that i want to use F1 in our application for our own
contextsensitive javahelp (even when the OOo-editor has focus). so when
people use the help-menu-item, OOo-help should show up but F1 should
trigger our own help.

does anybody know if/how this is possible to do?

You have to change a library as this shortcut is being processed by low level parts of OOo. You can find the code in VCL, see:


vcl/source/window/winproc.cxx in static long ImplHandleKey( ... ) where KEY_F1 || KEY_HELP is processed.

Regards,
Carsten

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



Reply via email to