This commit is contained in:
2025-11-14 18:24:38 +08:00
parent 66a1ddef66
commit b27b9f9ee1
2 changed files with 25 additions and 4 deletions

View File

@@ -1736,7 +1736,7 @@
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = CustomKeyboard/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "我的输入法";
INFOPLIST_KEY_CFBundleDisplayName = "Key of Love";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 15;
LD_RUNPATH_SEARCH_PATHS = (
@@ -1769,7 +1769,7 @@
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = CustomKeyboard/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "我的输入法";
INFOPLIST_KEY_CFBundleDisplayName = "Key of Love";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 15;
LD_RUNPATH_SEARCH_PATHS = (
@@ -1804,7 +1804,7 @@
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = keyBoard/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "YOLO输入法";
INFOPLIST_KEY_CFBundleDisplayName = "Key of Love";
INFOPLIST_KEY_CFBundleURLTypes = "{\n CFBundleURLName = \"com.loveKey.nyx.keyboard\";\n CFBundleURLSchemes = (\n kbkeyboardAppExtension\n );\n}";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
@@ -1848,7 +1848,7 @@
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = keyBoard/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "YOLO输入法";
INFOPLIST_KEY_CFBundleDisplayName = "Key of Love";
INFOPLIST_KEY_CFBundleURLTypes = "{\n CFBundleURLName = \"com.loveKey.nyx.keyboard\";\n CFBundleURLSchemes = (\n kbkeyboardAppExtension\n );\n}";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;

View File

@@ -136,6 +136,12 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
// [UIView performWithoutAnimation:^{
self.permVC.view.hidden = !show;
// }];
//
// 便/访
if (!show) {
[self kb_tryActivateTextFieldIfReady];
}
}
///
@@ -270,6 +276,21 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
[KBHUD showInfo:(isMine ? @"是自己的键盘" : @"❎不是自己的键盘")];
}
///
- (void)kb_tryActivateTextFieldIfReady {
//
if (self.permVC && self.permVC.view.hidden == NO) return;
//
if (!self.view.window) return;
//
if (![self.textField isFirstResponder]) {
[self.textField becomeFirstResponder];
}
dispatch_async(dispatch_get_main_queue(), ^{
[self kb_evaluateCurrentInputModeAndNotifyIfNeeded];
});
}
#pragma mark - UITableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {