Skip to content
Snippets Groups Projects
Commit aa371b5d authored by George Nachman's avatar George Nachman
Browse files

Fix a crash when dismissing the tip of the day with the keyboard (esc)

parent d590d8b6
No related branches found
No related tags found
No related merge requests found
images/StatusItem.png

439 B | W: 28px | H: 16px

images/StatusItem.png

3.11 KiB | W: 28px | H: 16px

images/StatusItem.png
images/StatusItem.png
images/StatusItem.png
images/StatusItem.png
  • 2-up
  • Swipe
  • Onion skin
images/StatusItem@2x.png

874 B | W: 56px | H: 32px

images/StatusItem@2x.png

3.76 KiB | W: 56px | H: 32px

images/StatusItem@2x.png
images/StatusItem@2x.png
images/StatusItem@2x.png
images/StatusItem@2x.png
  • 2-up
  • Swipe
  • Onion skin
Loading
Loading
@@ -273,9 +273,14 @@ static OSStatus EventHandler(EventHandlerCallRef inHandler,
continue;
}
// The target returns an array of siblings that were handled at the same time.
[handled addObjectsFromArray:[hotkey.target performSelector:hotkey.selector
withObject:hotkey.userData
withObject:[hotkeys arrayByRemovingObject:hotkey]]];
NSArray *handledSiblings = [hotkey.target performSelector:hotkey.selector
withObject:hotkey.userData
withObject:[hotkeys arrayByRemovingObject:hotkey]];
if (handledSiblings) {
[handled addObjectsFromArray:handledSiblings];
} else {
[handled addObject:hotkey];
}
}
 
return hotkeys.count > 0;
Loading
Loading
Loading
Loading
@@ -278,8 +278,9 @@ static const CGFloat kWindowWidth = 400;
return nil;
}
 
- (void)dismissByKeyboard:(id)sender {
- (NSArray *)dismissByKeyboard:(id)sender {
[self dismiss];
return nil;
}
 
// Update the card's size.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment