Commit 109687ec authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Nate Graham
Browse files

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


(cherry picked from commit 8716053a)
parent 87de7749
Pipeline #156695 passed with stage
in 7 minutes and 48 seconds
......@@ -17,7 +17,7 @@ Menu {
id: clipboardMenu
Keys.onPressed: {
function forwardToFilter() {
if (event.text !== "" && !filter.activeFocus) {
if (filter.enabled && event.text !== "" && !filter.activeFocus) {
clipboardMenu.view.currentIndex = -1
if (event.matches(StandardKey.Paste)) {
filter.paste();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment