igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
75 lines (72 loc) • 1.79 kB
JavaScript
/**
* Event args for KeyUp and KeyDown events.
*/
export class IgxKeyEventArgs {
constructor() {
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
}
get originalEvent() {
return this.i.originalEvent;
}
/**
* Gets a value indicating whether the ALT key was pressed.
*/
get alt() {
return this.i.alt;
}
/**
* Gets a value indicating whether the CTRL key was pressed.
*/
get ctrl() {
return this.i.ctrl;
}
/**
* Gets the keyboard code for a KeyDown or KeyUp event.
*/
get keyCode() {
return this.i.keyCode;
}
/**
* Gets the modifier flags for a KeyDown or KeyUp event.
* The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed.
*/
get modifiers() {
return this.i.modifiers;
}
/**
* Gets a value indicating whether the SHIFT key was pressed.
*/
get shift() {
return this.i.shift;
}
/**
* Gets whether the PreventDefault method was called.
*/
get defaultPrevented() {
return this.i.defaultPrevented;
}
/**
* Tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
*/
preventDefault() {
this.i.preventDefault();
}
/**
* Prevent the event from bubbling up.
*/
stopPropagation() {
this.i.stopPropagation();
}
}