Preparing search index...

    Base class for UI input events that can be accepted or ignored by handlers.

        // Event is the base for UI events (KeyEvent, MouseEvent).
    // accept() marks the event handled; ignore() lets it propagate.
    const UiTest = await import('LensStudio:UiTest');
    const { Key, KeyboardModifier } = await import('LensStudio:Ui');

    const event = UiTest.KeyEvent(UiTest.EventType.KeyPress, Key.Key_A, KeyboardModifier.NoModifier, 'a');
    event.accept();
    console.log(`Event accepted: key=${event.key}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Marks the event as handled so it will not propagate further.

      Returns void

    • Marks the event as unhandled so it propagates to parent widgets.

      Returns void

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean