Stop qsearchfield from swallowing keypresses.

This commit is contained in:
Keith Bennett 2014-03-22 15:54:57 +00:00
parent 612ef0ef9b
commit a9a724714f

View File

@ -103,26 +103,26 @@ public:
if (keyCode == KEYCODE_A)
{
[self performSelector:@selector(selectText:)];
return YES;
return NO;
}
else if (keyCode == KEYCODE_C)
{
QClipboard* clipboard = QApplication::clipboard();
clipboard->setText(toQString([self stringValue]));
return YES;
return NO;
}
else if (keyCode == KEYCODE_V)
{
QClipboard* clipboard = QApplication::clipboard();
[self setStringValue:fromQString(clipboard->text())];
return YES;
return NO;
}
else if (keyCode == KEYCODE_X)
{
QClipboard* clipboard = QApplication::clipboard();
clipboard->setText(toQString([self stringValue]));
[self setStringValue:@""];
return YES;
return NO;
}
}