Skip to content

Commit

Permalink
[TIMOB-15967] Keyboard toolbar dissapearing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pec1985 committed Aug 7, 2014
1 parent 063d256 commit 970d6b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion iphone/Classes/TiUITableView.m
Expand Up @@ -844,7 +844,7 @@ -(void)dispatchAction:(TiUITableViewAction*)action
}
}
if (hasFocus) {
[chosenField focus:nil];
[chosenField performSelector:@selector(focus:) withObject:nil afterDelay:0];
}
[chosenField setSuppressFocusEvents:oldSuppress];
[chosenField release];
Expand Down
10 changes: 5 additions & 5 deletions iphone/Classes/TiUITextWidget.m
Expand Up @@ -184,12 +184,12 @@ -(void)textWidget:(UIView<UITextInputTraits>*)tw didFocusWithText:(NSString *)va
{
TiUITextWidgetProxy * ourProxy = (TiUITextWidgetProxy *)[self proxy];

[[TiApp controller] didKeyboardFocusOnProxy:(TiViewProxy<TiKeyboardFocusableView> *)ourProxy];

if ([ourProxy suppressFocusEvents]) {
return;
}

[[TiApp controller] didKeyboardFocusOnProxy:(TiViewProxy<TiKeyboardFocusableView> *)ourProxy];

if ([ourProxy _hasListeners:@"focus"])
{
[ourProxy fireEvent:@"focus" withObject:[NSDictionary dictionaryWithObject:value forKey:@"value"] propagate:NO];
Expand All @@ -200,12 +200,12 @@ -(void)textWidget:(UIView<UITextInputTraits>*)tw didBlurWithText:(NSString *)val
{
TiUITextWidgetProxy * ourProxy = (TiUITextWidgetProxy *)[self proxy];

[[TiApp controller] didKeyboardBlurOnProxy:(TiViewProxy<TiKeyboardFocusableView> *)ourProxy];

if ([ourProxy suppressFocusEvents]) {
return;
}

[[TiApp controller] didKeyboardBlurOnProxy:(TiViewProxy<TiKeyboardFocusableView> *)ourProxy];


if ([ourProxy _hasListeners:@"blur"])
{
[ourProxy fireEvent:@"blur" withObject:[NSDictionary dictionaryWithObject:value forKey:@"value"] propagate:NO];
Expand Down

0 comments on commit 970d6b5

Please sign in to comment.