Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.74] Multiline TextInput key handling: add check for first responder #2216

Merged

Conversation

nakambo
Copy link
Collaborator

@nakambo nakambo commented Oct 8, 2024

Bring over #2215 to 0.74

performKeyEquivalent is [documented](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW10) to be called even if a view isn't first responder (this is for example how "Enter" binds to the default button on a dialog, for example -- the default button doesn't need to be focused to respond to Enter), but since we override performKeyEquivalent to properly support certain keyboard shortcuts (like noted in #1867), the previous assumption on the actual use of performKeyEquivalent no longer holds -- it's *only* for keystrokes sent in focused state, so add that check.
@nakambo nakambo requested a review from Saadnajmi October 8, 2024 22:50
@nakambo nakambo requested a review from a team as a code owner October 8, 2024 22:50
@nakambo nakambo enabled auto-merge (squash) October 8, 2024 22:54
@Saadnajmi Saadnajmi merged commit 8ea714b into 0.74-stable Oct 9, 2024
11 of 13 checks passed
@Saadnajmi Saadnajmi deleted the nakambo/multiline-textview-key-equivalent-fix-74 branch October 9, 2024 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants