#1942 Space in Add Torrent dialog box opens Quick Look on selected torrent in main window

This commit is contained in:
Mitchell Livingston
2009-05-26 00:29:36 +00:00
parent d1b321cc68
commit 40d29b51ec

View File

@@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/
#import "InfoWindowController.h"
#import "FileOutlineView.h"
#import "FileNameCell.h"
#import "FilePriorityCell.h"
@@ -86,8 +87,10 @@
- (void) keyDown: (NSEvent *) event
{
unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
if (firstChar == ' ')
const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
//don't allow quick look on add window
if (firstChar == ' ' && [[[self window] windowController] isKindOfClass: [InfoWindowController class]])
[[QuickLookController quickLook] toggleQuickLook];
else if (firstChar == NSRightArrowFunctionKey)
[[QuickLookController quickLook] pressRight];