mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
#1942 Space in Add Torrent dialog box opens Quick Look on selected torrent in main window
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#import "InfoWindowController.h"
|
||||||
#import "FileOutlineView.h"
|
#import "FileOutlineView.h"
|
||||||
#import "FileNameCell.h"
|
#import "FileNameCell.h"
|
||||||
#import "FilePriorityCell.h"
|
#import "FilePriorityCell.h"
|
||||||
@@ -86,8 +87,10 @@
|
|||||||
|
|
||||||
- (void) keyDown: (NSEvent *) event
|
- (void) keyDown: (NSEvent *) event
|
||||||
{
|
{
|
||||||
unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
|
const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
|
||||||
if (firstChar == ' ')
|
|
||||||
|
//don't allow quick look on add window
|
||||||
|
if (firstChar == ' ' && [[[self window] windowController] isKindOfClass: [InfoWindowController class]])
|
||||||
[[QuickLookController quickLook] toggleQuickLook];
|
[[QuickLookController quickLook] toggleQuickLook];
|
||||||
else if (firstChar == NSRightArrowFunctionKey)
|
else if (firstChar == NSRightArrowFunctionKey)
|
||||||
[[QuickLookController quickLook] pressRight];
|
[[QuickLookController quickLook] pressRight];
|
||||||
|
|||||||
Reference in New Issue
Block a user