PrizmDoc Viewer v13.13 Release - Updated December 9, 2020
API Reference / E-Signature Controls / Module: keyboard-controller
Module: keyboard-controller

Module: keyboard-controller

Controls the keyboard keys. This module uses jQuery.hotkeys plugin. If desired it can be replaced with any other keyboard interface code without affecting the keyboard consumer modules.

Fires:
Listens to Events:
Example
var KeyboardController = require('keyboard-controller.js');

// a generic Viewer constructor
function Viewer(opts) {
    var myKeyboardController = KeyboardController(this);
}

(require("keyboard-controller"))(viewer)

Creates the keyboard controller module.

Parameters:
Name Type Description
viewer Core

The core viewer to which the module will attach.

Methods

destroy()

Destroys the module.


Documentation generated by JSDoc 3.5.5 on Fri Jun 05 2020 08:18:07 GMT-0400 (Eastern Daylight Time)