Ignore:
Timestamp:
May 20, 2008, 7:34:33 PM (14 years ago)
Author:
livings124
Message:

#958 QuickLook? from within the Inspector - thanks Waldorf!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineView.m

    r5383 r5862  
    2424
    2525#import "FileOutlineView.h"
     26#import "FileOutlineController.h"
    2627#import "FileNameCell.h"
    2728#import "FilePriorityCell.h"
     
    8283    [[self window] makeKeyWindow];
    8384    [super mouseDown: event];
     85}
     86
     87- (void) keyDown: (NSEvent *) event
     88{
     89    unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
     90    if (firstChar == ' ')
     91        [(FileOutlineController *)[super delegate] userDidPressSpaceInOutlineView: self];
     92    else if (firstChar == NSRightArrowFunctionKey)
     93        [(FileOutlineController *)[super delegate] userDidPressRightInOutlineView: self];
     94    else if (firstChar == NSLeftArrowFunctionKey)
     95        [(FileOutlineController *)[super delegate] userDidPressLeftInOutlineView: self];
     96    else;
     97   
     98    [super keyDown: event]; 
    8499}
    85100
Note: See TracChangeset for help on using the changeset viewer.