//
//  KBKey.m
//  CustomKeyboard
//

#import "KBKey.h"

@implementation KBKey

+ (instancetype)keyWithTitle:(NSString *)title output:(NSString *)output {
    KBKey *k = [[KBKey alloc] init];
    k.type = KBKeyTypeCharacter;
    k.title = title ?: @"";
    k.output = output ?: title ?: @"";
    return k;
}

+ (instancetype)keyWithTitle:(NSString *)title type:(KBKeyType)type {
    KBKey *k = [[KBKey alloc] init];
    k.type = type;
    k.title = title ?: @"";
    k.output = @"";
    return k;
}

@end

