accels.inc
Created: Tue Jan 22 13:14:48 2008
accels.inc:
function hGetAccel( cCommand as string ) as string
Retrieve a keyboard accelerator for a specific function
Uses: framework/tools/input/accelerators.txt
NOTE: Accelerator is language dependent
Input
:
Name of the action to be executed (string). Valid options are:
"FileOpen"
"FileSave"
"Print"
"SelectAll"
"Copy"
"DocumentConverter_ShowLog"
"IDE_SWITCH_TAB+"
"IDE_SWITCH_TAB-"
Returns
:
Accelerator (string)
A string ready to use by .typeKeys(...) method
"Error" if the requested Accelerator is unknown
Description
:
Get the section from the accelerators file
Find the matching string for the current language
In case of a miss we retry with a modified string
Try xx-XX
Try xx
Try en-US
Build the complete accelerator-string so it can be used by "TypeKeys"
Print it to the log and return the string to the calling function