Enable or disable keyboard events.
[read/write property] enableKeyEvents([out, retval] VARIANT_BOOL *on) enableKeyEvents([in] VARIANT_BOOL on)
This property enables (if set to true) or disables (if set to false) keyboard events.

XpdfViewer provides several events for handling keys and mouse buttons. These events must be enabled - when enabled, they replace XpdfViewer's internal key and mouse handling. I.e., setting enableKeyEvents to true will disable XpdfViewer's built-in key bindings.

The events enabled by this property are:

viewer.enableKeyEvents = True ... Private Sub viewer_KeyDown(ByVal keycode As Integer, ByVal shift As Integer) ' process a keycode here (vbKeyLeft, etc.) End Sub Private Sub viewer_KeyUp(ByVal keycode As Integer, ByVal shift As Integer) ' same keycode as KeyDown End Sub Private Sub viewer_KeyPress(ByVal keyascii As Integer) ' process an ASCII character End Sub