@syncfusion/ej2-base
Version:
A common package of Essential JS 2 base libraries, methods and class definitions
30 lines (25 loc) • 789 B
TypeScript
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from './notify-property-change';import { Base, EmitType } from './base';
import {KeyboardEventArgs} from "./keyboard";
/**
* 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>;
}