lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
22 lines (21 loc) • 792 B
TypeScript
import { FocusType } from '../core/FocusType.js';
import { TargetableTricklingEvent } from './TargetableTricklingEvent.js';
import type { Widget } from '../widgets/Widget.js';
/**
* An event which contains text pasted by the clipboard.
*
* Has a focus type of {@link FocusType.Keyboard} and does not need focus.
*
* @category Event
*/
export declare class TextPasteEvent extends TargetableTricklingEvent {
static readonly type = "text-paste";
readonly type: typeof TargetableTricklingEvent.type;
readonly focusType: FocusType.Keyboard;
readonly needsFocus: false;
readonly userCapturable: true;
/** The pasted text */
readonly text: string;
constructor(text: string, target?: Widget | null);
cloneWithTarget(target: Widget | null): TextPasteEvent;
}