@eclipse-scout/core
Version:
Eclipse Scout runtime
14 lines • 792 B
TypeScript
/// <reference types="jquery" />
import { KeyStroke, ValueField } from '../../index';
/**
* The `AcceptInputKeyStroke` is bound to the ENTER key and calls {@link ValueField.acceptInput} on the active value field.
*
* The keystroke manager normally calls {@link ValueField.acceptInput} automatically before any keystroke is executed, unless {@link preventInvokeAcceptInputOnActiveValueField} is set to true.
* This means, this keystroke only needs to be registered if there is no other keystroke registered and pressing ENTER should accept the input.
*/
export declare class AcceptInputKeyStroke extends KeyStroke {
field: ValueField<any>;
constructor(field: ValueField<any>);
handle(event: JQuery.KeyboardEventBase): void;
}
//# sourceMappingURL=AcceptInputKeyStroke.d.ts.map