@launchmenu/core
Version:
An environment for visual keyboard controlled applets
18 lines • 992 B
TypeScript
import { ITextField } from "../../_types/ITextField";
import { IKeyEventListener } from "../../../keyHandler/_types/IKeyEventListener";
import { IIOContext } from "../../../context/_types/IIOContext";
import { ITextEditTarget } from "../_types/ITextEditTarget";
/**
* Creates a standard text field key handler
* @param textField The text field to create the handler for
* @param context The context that the handler is used in
* @param config Additional configuration
* @returns The key handler that can be added to the input handler stack
*/
export declare function createStandardTextFieldKeyHandler(textField: ITextField | ITextEditTarget, context: IIOContext, { onExit, extraHandler, }?: {
/** The code to execute when trying to exit the field */
onExit?: () => void;
/** Optional extra key handlers to augment this handler by */
extraHandler?: IKeyEventListener;
}): IKeyEventListener;
//# sourceMappingURL=createStandardTextFieldKeyHandler.d.ts.map