Customizing SoftBench for Native Language Support (NLS)

SoftBench Keyboard Accelerators and Non-USASCII Character Inputs

SoftBench Keyboard Accelerators and Non-USASCII Character Inputs

Some of the SoftBench tools' menu commands have keyboard accelerators. Accelerators are keystrokes (such as Alt-Shift-Efor "File: Edit…") that can be used to invoke the menu command without having to pull down the menu itself. These SoftBench keyboard accelerators may conflict with the key(s) used for entering multibyte characters using Input Method Servers. For example, you will not be able to invoke "File: Edit…" using Alt-Shift-Eif the Alt key is used for accessing the Input Method Server for entering a multibyte character. If such a conflict exists, and you wish to eliminate that conflict, you can do so by customizing the keyboard accelerators directly.

Customizing Keyboard Accelerators

Keyboard accelerators are defined in the files:

/opt/softbench/app-defaults/toolclass /opt/softbench/menus/.../C

Select the keyboard accelerator resources that are in conflict for each of the tools and modify them to your liking.

For example, suppose you wish to customize all of the SoftBench File Compare tool's keyboard accelerators so that it uses the Function keys, such as F2, instead of Alt-Shift-SomeKeykeystrokes.

1.Copy the appropriate SoftBench File Compare tool's resource specifications into your $HOME/.Xresources file:

Softcom*fileedit.accelerator: Shift Meta<Key>E

Softcom*fileedit.acceleratorText: Shift+Alt+E

Softcom*filecontext.accelerator: Shift Meta<Key>D

Softcom*filecontext.acceleratorText: Shift+Alt+D

2.Replace the accelerator resource with the keystroke you desire, and the acceleratorText resource with the actual label you expect to see in the menu pick. For instance:

Softcom*fileedit.accelerator: <Key>F2

Softcom*fileedit.acceleratorText: F2

Softcom*filecontext.accelerator: <Key>F3

Softcom*filecontext.acceleratorText: F3

Appendix D

369

Page 369
Image 369
HP UX SoftBench Software manual Customizing Keyboard Accelerators