Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 626 Bytes
//
// MPQueueTableView.m
// Pallet
//
// Created by Vasileios Georgitzikis on 16/7/10.
// Copyright 2010 Tzikis. All rights reserved.
//
#import "MPQueueTableView.h"
@implementation MPQueueTableView
-(void)keyDown:(NSEvent *)theEvent {
if ([[theEvent characters] characterAtIndex:0] == NSDeleteCharacter || [[theEvent characters] characterAtIndex:0] == NSBackspaceCharacter)
{
NSLog(@"Deleting our shit");
NSLog(@"Selection: %i", [queue selectionIndex]);
if([queue selectionIndex]>=0) [queue removeObjectAtArrangedObjectIndex:[queue selectionIndex]];
}
else
{
[super keyDown:theEvent];
}
}
@end