From 5ff3efb385b33f4056808dd198c47dbf4f8b61f5 Mon Sep 17 00:00:00 2001 From: Lukhnos Liu Date: Wed, 24 Nov 2021 21:16:20 -0800 Subject: [PATCH] Revert "Stop using IMK's showPreferences:" This reverts commit 69e463958e1437f11ca7f124267e69a02f4e77ee. --- Source/InputMethodController.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index d081ad1c..9dec8a06 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -1436,7 +1436,11 @@ public: - (void)showPreferences:(id)sender { // show the preferences panel, and also make the IME app itself the focus - [(AppDelegate *)[NSApp delegate] showPreferences]; + if ([IMKInputController instancesRespondToSelector:@selector(showPreferences:)]) { + [super showPreferences:sender]; + } else { + [(AppDelegate *)[NSApp delegate] showPreferences]; + } [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; }