Ignore:
Timestamp:
Sep 4, 2009, 4:10:46 AM (12 years ago)
Author:
livings124
Message:

draft #1 of #2369 - use public API for QuickLook? on 10.6 (and drop the hack for 10.5-support)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineView.m

    r8533 r9034  
    2929#import "Torrent.h"
    3030#import "FileListNode.h"
    31 #import "QuickLookController.h"
    3231
    3332@implementation FileOutlineView
     
    8483    [[self window] makeKeyWindow];
    8584    [super mouseDown: event];
    86 }
    87 
    88 - (void) keyDown: (NSEvent *) event
    89 {
    90     const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
    91    
    92     //don't allow quick look on add window
    93     if (firstChar == ' ' && [[[self window] windowController] isKindOfClass: [InfoWindowController class]])
    94         [[QuickLookController quickLook] toggleQuickLook];
    95     else if (firstChar == NSRightArrowFunctionKey)
    96         [[QuickLookController quickLook] pressRight];
    97     else if (firstChar == NSLeftArrowFunctionKey)
    98         [[QuickLookController quickLook] pressLeft];
    99     else;
    100    
    101     [super keyDown: event]; 
    10285}
    10386
Note: See TracChangeset for help on using the changeset viewer.