Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

8248532: Every time I change keyboard language at my MacBook, Java crashes #64

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m
Expand Up @@ -1335,7 +1335,7 @@ - (void)setInputMethod:(jobject)inputMethod

NSTextInputContext *curContxt = [NSTextInputContext currentInputContext];
kbdLayout = curContxt.selectedKeyboardInputSource;
[[NSNotificationCenter defaultCenter] addObserver:self
[[NSNotificationCenter defaultCenter] addObserver:[AWTView class]
selector:@selector(keyboardInputSourceChanged:)
name:NSTextInputContextKeyboardSelectionDidChangeNotification
object:nil];
Expand Down