Skip to content

Commit

Permalink
Multi line text view key handling: add check for first responder (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakambo authored Oct 9, 2024
1 parent 2d866c8 commit 8cd5b67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ - (void)deleteBackward {
}
#else // [macOS
- (BOOL)performKeyEquivalent:(NSEvent *)event {
if (!self.hasMarkedText && ![self.textInputDelegate textInputShouldHandleKeyEvent:event]) {
if (self.window.firstResponder == self && !self.hasMarkedText && ![self.textInputDelegate textInputShouldHandleKeyEvent:event]) {
return YES;
}

Expand Down

0 comments on commit 8cd5b67

Please sign in to comment.