Skip to content

Commit

Permalink
Merge remote-tracking branch 'yury/issues/299/empty-tabs' into raw
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Oct 5, 2017
2 parents 1f21062 + 4928828 commit 694af94
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Blink/SpaceController.m
Original file line number Diff line number Diff line change
Expand Up @@ -656,4 +656,20 @@ - (void)viewScreenWillBecomeActive
[self displayHUD];
}

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
// Fix for github issue #299
// Even app is not in active state it still recieves actions like CMD+T and etc.
// So we filter them here.

UIApplicationState appState = [[UIApplication sharedApplication] applicationState];

if (appState != UIApplicationStateActive) {
return NO;
}

return [super canPerformAction:action withSender:sender];
}


@end

0 comments on commit 694af94

Please sign in to comment.