KeyHandler // Add -(Bool)IsBuilderEmpty.
This commit is contained in:
parent
8171f75911
commit
79f3aa5fa4
|
@ -39,6 +39,7 @@ extern InputMode imeModeNULL;
|
|||
|
||||
@interface KeyHandler : NSObject
|
||||
|
||||
- (BOOL)isBuilderEmpty;
|
||||
- (BOOL)handleInput:(KeyHandlerInput *)input
|
||||
state:(InputState *)state
|
||||
stateCallback:(void (^)(InputState *))stateCallback
|
||||
|
|
|
@ -87,6 +87,14 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
|
|||
return _inputMode;
|
||||
}
|
||||
|
||||
- (BOOL)isBuilderEmpty {
|
||||
if (_builder->grid().width() == 0) {
|
||||
return YES;
|
||||
} else {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setInputMode:(NSString *)value
|
||||
{
|
||||
NSString *newInputMode;
|
||||
|
|
Loading…
Reference in New Issue