diff options
| author | Vadim Shpakovski | 2012-08-13 00:28:12 +0300 | 
|---|---|---|
| committer | Vadim Shpakovski | 2012-08-13 00:28:12 +0300 | 
| commit | e5a490c0fc0c6dd85a8254d8418384eef5a54cc7 (patch) | |
| tree | f42438f7f42236bbce57d393d20c16835822d390 | |
| parent | 38f9ded56a7d3ae95b9517346d86559cbe5ed534 (diff) | |
| download | MASShortcut-e5a490c0fc0c6dd85a8254d8418384eef5a54cc7.tar.bz2 | |
Fixes shortcut view.
When you pressed only modifier keys Command, Option, Control, Shift the view did not display their characters. It only displayed them when you press the full shortcut.
| -rw-r--r-- | MASShortcutView.m | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/MASShortcutView.m b/MASShortcutView.m index 11afa85..063f249 100644 --- a/MASShortcutView.m +++ b/MASShortcutView.m @@ -298,7 +298,8 @@ void *kUserDataHint = &kUserDataHint;      static id eventMonitor = nil;      if (shouldActivate) {          __weak MASShortcutView *weakSelf = self; -        eventMonitor = [NSEvent addLocalMonitorForEventsMatchingMask:NSKeyDownMask handler:^(NSEvent *event) { +        NSEventMask eventMask = (NSKeyDownMask | NSFlagsChangedMask); +        eventMonitor = [NSEvent addLocalMonitorForEventsMatchingMask:eventMask handler:^(NSEvent *event) {              MASShortcut *shortcut = [MASShortcut shortcutWithEvent:event];              if ((shortcut.keyCode == kVK_Delete) || (shortcut.keyCode == kVK_ForwardDelete)) { | 
