sas-function-key routine, then Resource Helper does not provide a way to change the
key labels in the Keys window. In both of
these cases, you will need to define your key resources yourself.
SAS.keyboardTranslations and SAS.keysWindowLabels resources in your resources file as described in Defining Key Translations.SAS.keyboardTranslations resource specifies the set of key bindings that SAS uses in all
SAS windows. The default value for the SAS.keyboardTranslations!SASROOT/X11/resource_filesSAS.keyboardTranslationsSAS.keyboardTranslations resource in your resource
file to include the definitions of the keys that you want to define.
sas-function-keySAS.keysWindowLabelsSAS.keysWindowLabels resource defines only the mnemonics used in the Keys window. For a specific key to perform an action, you must specify
a SAS.keyboardTranslationsxev utility to determine the keysyms that are associated
with the keys on your keyboard. The xev utility is distributed with most UNIX operating systems, but if xev is not installed in your operating environment,
contact your UNIX system administrator for information about other
methods that are available in your UNIX environment. The xev utility writes a message for each X event that
occurs. The KeyPress event specifies
the keysym for each key that is pressed.
KeyPress event lists the keysym
name that is associated with the key that was pressed.
KeyPress event, serial 32, synthetic NO, window 0x1a00001, root 0x5d, subw 0x1a00002, time 600120687, (37,41), root:(240,458), state 0x10, keycode 90 (keysym 0xffb0, KP_0), same_screen YES, XLookupString gives 1 bytes: (30) "0" XmbLookupString gives 1 bytes: (30) "0" XFilterEvent returns: FalseIn this example, the keysym name is
KP_0.
SAS.defaultVirtualBindingsosf,
such as osfPageDown, osfClear, and osfPrimaryPaste. If you remap these virtual bindings instead of using the defaults
supplied by SAS, you might get unexpected results. If you specify
a key translation that does not work, you might be trying to redefine
a key that is bound to a virtual keysym. In this case, you must specify
the virtual keysym in the SAS.keyboardTranslationsxev utility. To determine the
virtual keysym that is bound to a key, you can start the Resource
Helper, click Keys, and press the key or
key combination that you want to define. Resource Helper will display
the virtual keysym name. You can also refer to the key definition
files in /Xll/resource_files!SASROOT) and to the UNIX man pages for VirtualBinding
or xmbind.
sas-function-key action routine in the corresponding SAS.keyboardTranslationsSAS.keyboardTranslationssas-do-command action between the parameters. The assembled SAS command string
is then submitted for execution. For example, the following translation
syntax can be used to define a HOME, SUBMIT key sequence for all SAS
windowing environment windows: <Key>KP_F3: sas-do-command(HOME;SUBMIT)
sas-toggle-insertsas-insert-charShift<Key>KP_1: sas-insert-char("One\\"1\\"")sas-function-key()sas-function-key()sas-next-word does not find the
beginning of a word in the current text field, it advances to the
next SAS application field. If you are typing in the SAS command line
area of the window, the cursor will not wrap into the SAS window client
area.
sas-prev-word does not find
the beginning of a previous word in the current text field, it returns
to the end of the previous SAS application field. If you are typing
in the SAS command line area of the window, the cursor will not wrap
into the SAS window client area.
sas-do-command action routine specifies
that the COMMAND command is to override any existing definition for KP_0. SAS.keyboardTranslations: #override \n\
None<Key>KP_0: sas-do-command(COMMAND)All
other keys retain their current definitions.SAS.keyboardTranslations: #override\
Ctrl<Key>k: sas-do-command(keys)\n\
Ctrl<Key>d: sas-delete-char()hpClearLine performs the command entered beside the MyClrLn label in the Keys window. SAS.keyboardTranslations: #override \
<Key>hpClearLine : sas-function-key("ClearLn")
SAS.keysWindowLabels: MyClrLn(ClearLn)The character
string that appears inside the parentheses in the SAS.keysWindowLabels resource must match the string entered as the parameter to the sas-function-key routine. The label (MyClrLn) can be any character string, and the keysym hpClearLine must be a valid keysym for your keyboard.