Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
Permalink
Browse files
8248532: Every time I change keyboard language at my MacBook, Java cr…
…ashes

Backport-of: 6329de4
  • Loading branch information
Olga Mikhaltsova authored and Dmitry Cherepanov committed Dec 21, 2020
1 parent 05ac56a commit 501e942
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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];

1 comment on commit 501e942

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.