You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Control.KeyDown fails to trigger when non-modifier keys are initially pressed on macOS. Modifier keys like Shift or Cmd are registered immediately, but non-modifier keys must be held in order to trigger the event.
To Reproduce
Subscribe to the KeyDown event on macOS, and log the event to Console. Try pressing a non-modifier key; it will not be registered. Try holding a non-modifier key; it will be registered.
Expected behavior
Non-modifier keys get immediately registered.
Desktop
OS: macOS Ventura & Sonoma
Version: 11
The text was updated successfully, but these errors were encountered:
The delayed event for the key down seems to coincide with the appearance of this dialog (for s in the example):
For Ryujinx, this appears at the bottom left corner of the screen. We don't need to select a variant of the key, we just want the raw one.
EDIT: Seems related to calling _control.AddHandler(InputElement.TextInputEvent, Control_LastChanceTextInput, RoutingStrategies.Bubble);. This was called before to attempt to stop the bell sound happening when holding keys on macos, but now it seems to stop the initial event getting to keydown. It might not be needed anymore.
Describe the bug
Control.KeyDown fails to trigger when non-modifier keys are initially pressed on macOS. Modifier keys like Shift or Cmd are registered immediately, but non-modifier keys must be held in order to trigger the event.
To Reproduce
Subscribe to the KeyDown event on macOS, and log the event to Console. Try pressing a non-modifier key; it will not be registered. Try holding a non-modifier key; it will be registered.
Expected behavior
Non-modifier keys get immediately registered.
Desktop
The text was updated successfully, but these errors were encountered: