This commit is contained in:
2026-03-04 12:54:57 +08:00
parent 2a122d27a9
commit f30b1d7640
20 changed files with 2190 additions and 1546 deletions

View File

@@ -0,0 +1,27 @@
//
// 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