diff --git a/README.md b/README.md index a7fb2a0..b251dea 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,3 @@ Usage Use the command + keyboard shortcut to switch between the 9 first tabs of your Safari windows. NOTE: This plugin replaces the default behavior of those hotkeys which is to open the 9 first Bookmark Bar links. - -As a bonus, this plugin also ad Cmd+Shift+T to reopen last closed tab. diff --git a/SafariTabSwitching/SafariTabSwitching.m b/SafariTabSwitching/SafariTabSwitching.m index 018c173..d530301 100644 --- a/SafariTabSwitching/SafariTabSwitching.m +++ b/SafariTabSwitching/SafariTabSwitching.m @@ -52,22 +52,6 @@ - (void)SafariTabeSwitching_sendEvent:(NSEvent *)event return; // prevent event dispatching } } - - } - else if (event.type == NSKeyDown - && (event.modifierFlags & NSDeviceIndependentModifierFlagsMask) == (NSCommandKeyMask|NSShiftKeyMask) && event.keyCode == 0x11) { // keycode of 'T' - - CGEventRef e = CGEventCreateKeyboardEvent(NULL, 0x6, YES); // keycode of 'Z' - - CGEventSetFlags(e, kCGEventFlagMaskCommand); - - NSEvent *new_event = [NSEvent eventWithCGEvent:e]; - - CFRelease(e); - - [self SafariTabeSwitching_sendEvent:new_event]; - - return; } [self SafariTabeSwitching_sendEvent:event];