mirror of
https://github.com/macports/pallet.git
synced 2026-07-12 18:18:47 -07:00
194873689d
git-svn-id: https://svn.macports.org/repository/macports/branches/gsoc10-gui@69801 d073be05-634f-4543-b044-5fe20cf6d1d6
44 lines
1.1 KiB
Objective-C
44 lines
1.1 KiB
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 && [variantsPanel isVisible])) {
|
|
NSLog(@"wtf1");
|
|
if ([variantsPanel isVisible]) {
|
|
[variantsPanel close];
|
|
//[variantsPanel close];
|
|
} else {
|
|
[variantsPanel makeKeyAndOrderFront:self];
|
|
}
|
|
} else {
|
|
NSLog(@"wtf2");
|
|
[super keyDown: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
|