Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
fix for keyboard navigation
Browse files Browse the repository at this point in the history
Tab key must pass through. This is important if you want to do keyboard navigation through this control.
  • Loading branch information
Stillness-2 committed Aug 9, 2015
1 parent 5ead539 commit c98154e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Framework/MASShortcutView.m
Expand Up @@ -398,6 +398,11 @@ - (void)activateEventMonitoring:(BOOL)shouldActivate
// Create a shortcut from the event
MASShortcut *shortcut = [MASShortcut shortcutWithEvent:event];

// Tab key must pass through.
if (shortcut.keyCode == kVK_Tab){
return event;
}

// If the shortcut is a plain Delete or Backspace, clear the current shortcut and cancel recording
if (!shortcut.modifierFlags && ((shortcut.keyCode == kVK_Delete) || (shortcut.keyCode == kVK_ForwardDelete))) {
weakSelf.shortcutValue = nil;
Expand Down

0 comments on commit c98154e

Please sign in to comment.