@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
29 lines (24 loc) • 835 B
TypeScript
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Base, EmitType } from '@syncfusion/ej2-base';import { KeyboardEventsModel } from '@syncfusion/ej2-base';
/**
* Interface for a class KeyboardEvents
*/
export interface KeyboardEventsModel {
/**
* Specifies key combination and it respective action name.
*
* @default null
*/
keyConfigs?: { [key: string]: string };
/**
* Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
*
* @default 'keyup'
*/
eventName?: string;
/**
* Specifies the listener when keyboard actions is performed.
*
* @event 'keyAction'
*/
keyAction?: EmitType<KeyboardEventArgs>;
}