mirror of
https://github.com/transmission/transmission
synced 2025-01-31 11:23:40 +00:00
#1942 Space in Add Torrent dialog box opens Quick Look on selected torrent in main window
This commit is contained in:
parent
d1b321cc68
commit
40d29b51ec
1 changed files with 5 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue