Skip to content

Use KeyDown instead of KeyUp to handle MainView keyboard shortcuts#3354

Merged
Martí Climent (marticliment) merged 1 commit intoDevolutions:mainfrom
tkohlmeier:keydown
Feb 26, 2025
Merged

Use KeyDown instead of KeyUp to handle MainView keyboard shortcuts#3354
Martí Climent (marticliment) merged 1 commit intoDevolutions:mainfrom
tkohlmeier:keydown

Conversation

@tkohlmeier
Copy link
Copy Markdown
Contributor

  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • This PR is not composed of garbage changes used to farm GitHub activity to enter potential Crypto AirDrops.
    Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.

Use KeyDown event for handling MainView keyboard shortcuts to prevent handling key presses initiated in other applications. Ignoring events with KeyStatus.WasKeyDown == true to ignore key down events resulting from holding down a key.


Closes #3298

@tkohlmeier tkohlmeier changed the title use KeyDown instead of KeyUp to prevent handling key press events ini… Use KeyDown instead of KeyUp to handle MainView keyboard shortcuts Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] UniGetUI reacts to key press although not focused

2 participants