# KeystrokeHandlerOptions

interface

[`set`](module_utils_keystrokehandler-KeystrokeHandler.md#function-set) method options.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/keystrokehandler.ts#L150)

<a id="properties">

## Properties

<a id="member-filter">

### `filter?: ( keyEvtData: KeyboardEvent ) => boolean` _(readonly)_

An optional callback function allowing for filtering keystrokes based on arbitrary criteria. The callback function receives `keydown` DOM event as a parameter.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/keystrokehandler.ts#L162)

<a id="member-priority">

### `priority?: PriorityString` _(readonly)_

The priority of the keystroke callback. The higher the priority value the sooner the callback will be executed. Keystrokes having the same priority are called in the order they were added.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/keystrokehandler.ts#L156)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
