1
This commit is contained in:
@@ -73,6 +73,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
@interface KBKeyboardLayout : NSObject
|
||||
@property (nonatomic, strong, nullable) NSNumber *rowSpacing;
|
||||
@property (nonatomic, strong, nullable) NSNumber *topInset;
|
||||
@property (nonatomic, strong, nullable) NSNumber *bottomInset;
|
||||
@property (nonatomic, strong, nullable) NSArray<KBKeyboardRowConfig *> *rows;
|
||||
@property (nonatomic, strong, nullable) NSArray<KBKeyboardRowConfig *> *shiftRows;
|
||||
@end
|
||||
|
||||
@@ -184,6 +184,9 @@ static NSString * const kKBKeyboardLayoutI18nFileName = @"kb_keyboard_layouts_i1
|
||||
}
|
||||
|
||||
KBKeyboardLayout *mergedLayout = [KBKeyboardLayout new];
|
||||
mergedLayout.rowSpacing = baseLayout.rowSpacing ?: layout.rowSpacing;
|
||||
mergedLayout.topInset = baseLayout.topInset ?: layout.topInset;
|
||||
mergedLayout.bottomInset = baseLayout.bottomInset ?: layout.bottomInset;
|
||||
mergedLayout.rows = [self kb_mergeRowsFromBase:baseLayout.rows override:layout.rows];
|
||||
mergedLayout.shiftRows = [self kb_mergeRowsFromBase:baseLayout.shiftRows override:layout.shiftRows];
|
||||
mergedLayouts[key] = mergedLayout;
|
||||
|
||||
Reference in New Issue
Block a user