Skip to content

KeyDown, KeyUp, KeyPress Events does not work #847

Closed

Description

@itg-assistant

Bitpainter asked 2017-05-19 08:12:00 UTC

Hi,

i have set KeyPreview = True in my Page Class but the KeyDown, KeyUp, KeyPress Events does not work.

Best regards

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-05-19 09:53:55 UTC

    Hi Bitpainter,

    did you subscribe to the KeyDown/KeyUp/KeyPress Events ?

    Keyboard Events are what we call "lazy Events". They are fired only when attached (see https://docs.wisej.com/docs/controls/general/lazy-events)

    KeyPreview lets a Container (like the page) process any child´s key Event, but if the child is not subscribed, the Event is never
    wired back to the server. This is to avoid a larger amout of Keyboard Events that would fire when typing.

    Depending on your needs you might also want to take a look at using accelerators.

    Hope that helps.

    Best regards
    Frank

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions