Files
keyboard/CustomKeyboard/View/KBKeyboardView/KBKeyboardInputHandler.h

28 lines
605 B
C
Raw Normal View History

2026-03-04 12:54:57 +08:00
//
// KBKeyboardInputHandler.h
// CustomKeyboard
//
// Key tap handling helper.
//
#import <Foundation/Foundation.h>
@class KBKey;
NS_ASSUME_NONNULL_BEGIN
typedef void (^KBKeyboardActionHandler)(void);
typedef void (^KBKeyboardKeyTapHandler)(KBKey *key);
@interface KBKeyboardInputHandler : NSObject
@property (nonatomic, copy, nullable) KBKeyboardActionHandler onToggleShift;
@property (nonatomic, copy, nullable) KBKeyboardActionHandler onToggleSymbols;
@property (nonatomic, copy, nullable) KBKeyboardKeyTapHandler onKeyTapped;
- (BOOL)handleKeyTap:(KBKey *)key;
@end
NS_ASSUME_NONNULL_END