Skip to main content

init(config)

Initializes the OpenKeyNav instance with the supplied configuration and returns that instance.

const openKeyNav = new OpenKeyNav().init({
keys: {
click: 'c',
},
});

init() merges config into the instance configuration, registers its document keyboard handling, initializes status and toolbar support, sends the version-support event when telemetry is enabled, and restores the user's persisted enabled state.