applets/clipboard: Don't forward input to filter if it's disabled

When the filter is disabled, don't forward any input to the filter
because it will return nothing.

CCBUG: 450989
wilder-5.25
Fushan Wen 4 years ago committed by Nate Graham
parent 9a5491ef69
commit 8716053a37
  1. 2
      applets/clipboard/contents/ui/ClipboardPage.qml

@ -19,7 +19,7 @@ Menu {
id: clipboardMenu id: clipboardMenu
Keys.onPressed: { Keys.onPressed: {
function forwardToFilter() { function forwardToFilter() {
if (event.text !== "" && !filter.activeFocus) { if (filter.enabled && event.text !== "" && !filter.activeFocus) {
clipboardMenu.view.currentIndex = -1 clipboardMenu.view.currentIndex = -1
if (event.matches(StandardKey.Paste)) { if (event.matches(StandardKey.Paste)) {
filter.paste(); filter.paste();

Loading…
Cancel
Save