Skip to content

Commit 6329de4

Browse files
committed
8248532: Every time I change keyboard language at my MacBook, Java crashes
Reviewed-by: serb, prr
1 parent d560964 commit 6329de4

File tree

1 file changed

+1
-1
lines changed
  • src/java.desktop/macosx/native/libawt_lwawt/awt

1 file changed

+1
-1
lines changed

src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ - (void)setInputMethod:(jobject)inputMethod
13351335

13361336
NSTextInputContext *curContxt = [NSTextInputContext currentInputContext];
13371337
kbdLayout = curContxt.selectedKeyboardInputSource;
1338-
[[NSNotificationCenter defaultCenter] addObserver:self
1338+
[[NSNotificationCenter defaultCenter] addObserver:[AWTView class]
13391339
selector:@selector(keyboardInputSourceChanged:)
13401340
name:NSTextInputContextKeyboardSelectionDidChangeNotification
13411341
object:nil];

0 commit comments

Comments
 (0)