mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
* Don't let NSSearchField grab Cmd + A.
This commit is contained in:
@@ -24,6 +24,7 @@ THE SOFTWARE.
|
|||||||
#include "moc_qsearchfield.cpp"
|
#include "moc_qsearchfield.cpp"
|
||||||
|
|
||||||
#include "qocoa_mac.h"
|
#include "qocoa_mac.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#import "Foundation/NSAutoreleasePool.h"
|
#import "Foundation/NSAutoreleasePool.h"
|
||||||
#import "Foundation/NSNotification.h"
|
#import "Foundation/NSNotification.h"
|
||||||
@@ -104,12 +105,12 @@ static const unsigned short kKeycodeV = 9;
|
|||||||
if ([event type] == NSKeyDown && [event modifierFlags] & NSCommandKeyMask)
|
if ([event type] == NSKeyDown && [event modifierFlags] & NSCommandKeyMask)
|
||||||
{
|
{
|
||||||
const unsigned short keyCode = [event keyCode];
|
const unsigned short keyCode = [event keyCode];
|
||||||
if (keyCode == kKeycodeA) // Cmd+a
|
/* if (keyCode == kKeycodeA) // Cmd+a
|
||||||
{
|
{
|
||||||
[self performSelector:@selector(selectText:)];
|
[self performSelector:@selector(selectText:)];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
else if (keyCode == kKeycodeC) // Cmd+c
|
else*/ if (keyCode == kKeycodeC) // Cmd+c
|
||||||
{
|
{
|
||||||
QClipboard* clipboard = QApplication::clipboard();
|
QClipboard* clipboard = QApplication::clipboard();
|
||||||
clipboard->setText(toQString([self stringValue]));
|
clipboard->setText(toQString([self stringValue]));
|
||||||
|
Reference in New Issue
Block a user