AI键移除 放在顶部KBToolBar

This commit is contained in:
2025-12-19 20:08:13 +08:00
parent 7587fe6714
commit 70520fb7d9
5 changed files with 19 additions and 23 deletions

View File

@@ -277,10 +277,6 @@ static const CGFloat kKBLettersRow2EdgeSpacerMultiplier = 0.5;
title:@"123"
output:@""
type:KBKeyTypeModeChange];
KBKey *customAI = [KBKey keyWithIdentifier:@"ai"
title:@"AI"
output:@""
type:KBKeyTypeCustom];
KBKey *emoji = [KBKey keyWithIdentifier:KBKeyIdentifierEmojiPanel
title:@"😊"
output:@""
@@ -293,7 +289,7 @@ static const CGFloat kKBLettersRow2EdgeSpacerMultiplier = 0.5;
title:KBLocalized(@"Send")
output:@"\n"
type:KBKeyTypeReturn];
return @[ mode123, customAI, emoji, space, ret ];
return @[ mode123, emoji, space, ret ];
}
//
@@ -302,10 +298,6 @@ static const CGFloat kKBLettersRow2EdgeSpacerMultiplier = 0.5;
title:@"abc"
output:@""
type:KBKeyTypeModeChange];
KBKey *customAI = [KBKey keyWithIdentifier:@"ai"
title:@"AI"
output:@""
type:KBKeyTypeCustom];
KBKey *emoji = [KBKey keyWithIdentifier:KBKeyIdentifierEmojiPanel
title:@"😊"
output:@""
@@ -318,7 +310,7 @@ static const CGFloat kKBLettersRow2EdgeSpacerMultiplier = 0.5;
title:KBLocalized(@"Send")
output:@"\n"
type:KBKeyTypeReturn];
return @[ modeABC, customAI, emoji, space, ret ];
return @[ modeABC, emoji, space, ret ];
}
#pragma mark - Row Building
@@ -332,7 +324,7 @@ static const CGFloat kKBLettersRow2EdgeSpacerMultiplier = 0.5;
edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
// 4 使
// 123/ABCAISend Space
// 123/ABCEmojiSend Space
BOOL isBottomControlRow = [self kb_isBottomControlRowWithKeys:keys];
CGFloat spacing = 0; //
@@ -419,7 +411,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
}];
}
// 123/ABCAISend
// 123/ABCEmojiSend
// Space
if (isBottomControlRow) {
[self kb_applyBottomControlRowWidthInRow:row];
@@ -448,7 +440,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
}
}
if (firstChar) {
// 123/ABC/AI/#+=
// 123/ABC/#+=
// 1:1 123/ABC
if (!hasCharacterInRow &&
(firstChar.key.type == KBKeyTypeModeChange ||
@@ -540,7 +532,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
}
//
// - 123/ABCAI = * multiplier
// - 123/ABCEmoji = * multiplier
// - Send = 2
// - Space
- (void)kb_applyBottomControlRowWidthInRow:(UIView *)row {