From a9a724714f74ec366b13633c81528911d2736ee4 Mon Sep 17 00:00:00 2001 From: Keith Bennett Date: Sat, 22 Mar 2014 15:54:57 +0000 Subject: [PATCH] Stop qsearchfield from swallowing keypresses. --- src/gui/qocoa/qsearchfield_mac.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/qocoa/qsearchfield_mac.mm b/src/gui/qocoa/qsearchfield_mac.mm index 01d55937c..c4d320347 100644 --- a/src/gui/qocoa/qsearchfield_mac.mm +++ b/src/gui/qocoa/qsearchfield_mac.mm @@ -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; } }