We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5a6dd commit 50e876fCopy full SHA for 50e876f
src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m
@@ -1335,7 +1335,7 @@ - (void)setInputMethod:(jobject)inputMethod
1335
1336
NSTextInputContext *curContxt = [NSTextInputContext currentInputContext];
1337
kbdLayout = curContxt.selectedKeyboardInputSource;
1338
- [[NSNotificationCenter defaultCenter] addObserver:self
+ [[NSNotificationCenter defaultCenter] addObserver:[AWTView class]
1339
selector:@selector(keyboardInputSourceChanged:)
1340
name:NSTextInputContextKeyboardSelectionDidChangeNotification
1341
object:nil];
0 commit comments