mirror of
https://github.com/macports/pallet.git
synced 2026-03-31 14:39:01 -07:00
git-svn-id: https://svn.macports.org/repository/macports/branches/gsoc15-pallet@138382 d073be05-634f-4543-b044-5fe20cf6d1d6
30 lines
617 B
Objective-C
30 lines
617 B
Objective-C
//
|
|
// 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 a queue entry");
|
|
NSLog(@"Selection: %lu", (unsigned long)[queue selectionIndex]);
|
|
[queue removeObjectAtArrangedObjectIndex:[queue selectionIndex]];
|
|
}
|
|
else
|
|
{
|
|
[super keyDown:theEvent];
|
|
}
|
|
|
|
}
|
|
|
|
@end
|