Handling keyboard strokes – Kofax DOKuStar Validation User Manual
Page 79
Advertising

DOKuStar Validation for Ascent Capture
Page
• 75
Handling Keyboard Strokes
Keyboard strokes can also be handled by an add-in for DOKuStar Validation. The appropriate service is called
Keyboard
service. First you must provide the keyboard service of Validation.
The keyboard service has two functions
OnChar()
and
OnKeyDown()
. In
OnChar()
you get the final code
from the keyboard. That means if you press
Shift-A
, you get the final key code in
OnChar()
, in this case
65
. In
OnKeyDown()
you get the code for
Shift
and
a
. Normally you would implement hotkeys in
OnKeyDown()
.
For our example we assume that numbers should be suppressed in the edit control and that the user should get a
message box if he presses
F4
.
Advertising