C and C++ SoftBench User's Guide
Customizing SoftBench for Native Language Support (NLS)
Rebinding Alt
Appendix D366
Rebinding Alt
To replace the Alt keybindings used by theeditor with alternate bindings
using ESC, include the following lines in your $HOME/.Xresources file or
use xrdb to set them:
*CodeEdit*extendKey: esckey
*Edit*extendKey: esckey
*ListMgr*extendKey: esckey
Note that ESC works differently from Extend char:
To enter Alt-A using Extend char: Press Extend char and hold it down
while pressing A.
To enter Alt-A using ESC: Press ESC, release it, and then press A.
Note also that setting the three *extendKey resources shown above
replaces only the Alt command bindings used in edit commands. All
other uses of Alt, such as mnemonics used for menu operations, continue
to require Extend char. See the “SoftBench Mnemonics and Non-USASCII
Character Inputs” on page 367 section for further instructions.
If you remap the Alt key, you introduce a conflict between ESC used as
the Alt key and ESC used to close a dialog box. To resolve this conflict,
change the osfCancel virtual keybinding from ESC to CTRL-ESC by
adding the following line:
*osfCancel: Ctrl <Key> Escape
to your $HOME/.Xresources or $HOME/.motifbind file.
If your .motifbind file (or your .Xresources file) does not contain a
Motif virtual-keybindings table, add the contents of the file
/opt/softbench/newconfig/opt/softbench/config/examples/C1405A_RX.motifbind
For more information on osfCancel and Motif virtual keys, see the
VirtualBindings(3X) and mwm(1X) reference pages. For more
information on SoftBench edit area keybindings, see "Edit Area
Keybindings" in SoftBench Online Help.