[accelerators]

The [accelerators] section of the initialization file enables you to map a logical function, such as fileopen to a keyboard sequence (an accelerator) such as Ctrl+F7.

Each entry has the following syntax:

LogicalName = Accelerator

Arguments

  • LogicalName—logical name used in the Accelerator property of a menu. The maximum length of a logical name is 30 characters.
  • Accelerator—key or keystroke combination to use as the accelerator. Key modifiers (Shift, Alt, and Ctrl) can be connected with the plus (+), minus (-) or space characters. The accelerator is displayed next to the menu item when the menu item is displayed.

Description

Although the notation used for accelerator keys is not case-sensitive, the terms used are fixed. Thus Ctrl, not Control. If the accelerator is not recognized, an error is put in the transcript log and the LogicalName is not assigned.

Notation for Accelerators

Key

Accelerator Notation

Alt

Alt

Ctrl

Ctrl

Shift

Shift

Backspace

Backspace

Delete

Del or Delete

Insert

Ins or Insert

Tab

Tab

Enter

Enter

Esc

Esc

Spacebar

Space

Page Up

PgUp or PageUp

Page Down

PgDn or PageDown

Home

Home

End

End

Up arrow

Up

Down arrow

Down

Left arrow

Left

Right arrow

Right

+ (Add)

NumPad+

- (Subtract)

NumPad-

* (Multiply)

NumPad*

/ (Divide)

NumPad/

The number of accelerators is limited to 256.

On Microsoft Windows, some keys are reserved, that is, they have a standard meaning for Windows actions, and therefore should not be redefined.

Default Uniface Accelerator Key Settings

Logical function

Default accelerator

Description

fileopen

Ctrl+O

Displays the Open dialog box

close

Ctrl+A

Exits the active application

quit

Ctrl+F4

Closes the active window

delete

Alt+D

Deletes the active object

editcut

Ctrl+X

Cuts the selected text or graphic, copying it to the clipboard

editcopy

Ctrl+C

Copies the selected text or graphic to the clipboard

editpaste

Ctrl+V

Pastes the contents of the clipboard

editfind

F11

Displays the Find dialog box

editfindnext

F12

Finds the next occurrence specified in the Find dialog box

clearfield

Alt+F1

Clears the active field

Settings for Debugger Accelerators

Setting

Default accelerator

Description

udbg_start

Shift+Ctrl+G

Switch control to the application, allowing it to run until control is returned to the Debugger.

udbg_stepinto

Shift+Ctrl+S

Execute the current ProcScript statement, then return control to the Debugger.

udbg_stepover

Shift+Ctrl+J

Step over invocation ProcScript statements (call, activate, or run), then return control to the Debugger after the invocation.

udbg_stepout

Shift+Ctrl+Q

Run the application until the return of the current ProcScript module.

udbg_toggle

Shift+Ctrl+B

Set breakpoint on or off

udbg_gocursor

Shift+Ctrl+C

Run the application up to the cursor

udbg_skip

Shift+Ctrl+K

Skip the current ProcScript statement

udbg_halt

Shift+Ctrl+H

Halt the application and return control to the Debugger

udbg_clear

Shift+Ctrl+P

Clear all breakpoints

udbg_edit

Shift+Ctrl+E

Edit multiple breakpoints

udbg_quickwatch

Shift+Ctrl+F2

Open Quick Watch window

udbg_select

Shift+Ctrl+F3

Open Select Watches window

udbg_browser

Shift+Ctrl+F5

Open Browser window

udbg_callstack

Shift+Ctrl+F7

Open Call Stack window

udbg_error

Shift+Ctrl+F8

Open Error Context window

udbg_message

Shift+Ctrl+F9

Open Message Frame window

udbg_settings

Shift+Ctrl+F10

Open Debugger Settings form

udbg_pref

Shift+Ctrl+F11

Open Debugger Preferences form

[accelerators]

[accelerators]
fileopen=Ctrl+O
fileclose=Cmd+C
udbg_start=Alt-G
editfind = PgDn

Related Topics