mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Stop qsearchfield from swallowing keypresses.
This commit is contained in:
parent
612ef0ef9b
commit
a9a724714f
@ -103,26 +103,26 @@ public:
|
|||||||
if (keyCode == KEYCODE_A)
|
if (keyCode == KEYCODE_A)
|
||||||
{
|
{
|
||||||
[self performSelector:@selector(selectText:)];
|
[self performSelector:@selector(selectText:)];
|
||||||
return YES;
|
return NO;
|
||||||
}
|
}
|
||||||
else if (keyCode == KEYCODE_C)
|
else if (keyCode == KEYCODE_C)
|
||||||
{
|
{
|
||||||
QClipboard* clipboard = QApplication::clipboard();
|
QClipboard* clipboard = QApplication::clipboard();
|
||||||
clipboard->setText(toQString([self stringValue]));
|
clipboard->setText(toQString([self stringValue]));
|
||||||
return YES;
|
return NO;
|
||||||
}
|
}
|
||||||
else if (keyCode == KEYCODE_V)
|
else if (keyCode == KEYCODE_V)
|
||||||
{
|
{
|
||||||
QClipboard* clipboard = QApplication::clipboard();
|
QClipboard* clipboard = QApplication::clipboard();
|
||||||
[self setStringValue:fromQString(clipboard->text())];
|
[self setStringValue:fromQString(clipboard->text())];
|
||||||
return YES;
|
return NO;
|
||||||
}
|
}
|
||||||
else if (keyCode == KEYCODE_X)
|
else if (keyCode == KEYCODE_X)
|
||||||
{
|
{
|
||||||
QClipboard* clipboard = QApplication::clipboard();
|
QClipboard* clipboard = QApplication::clipboard();
|
||||||
clipboard->setText(toQString([self stringValue]));
|
clipboard->setText(toQString([self stringValue]));
|
||||||
[self setStringValue:@""];
|
[self setStringValue:@""];
|
||||||
return YES;
|
return NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user