Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8248532: Every time I change keyboard language at my MacBook, Java cr…
…ashes

Reviewed-by: serb, prr
  • Loading branch information
prsadhuk committed Sep 9, 2020
1 parent d560964 commit 6329de4
Showing 1 changed file with 1 addition and 1 deletion.
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

1 comment on commit 6329de4

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 6329de4 Sep 9, 2020

Choose a reason for hiding this comment

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

Review

Issues

Please sign in to comment.