Commit 33df8fc7 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/clipboard: Focus on the search field for the first time opening the applet

So Up/Down key can navigate the list items instead of scrolling in
the ListView.

CCBUG: 448811


(cherry picked from commit 76615784)
parent 9e0baec1
Pipeline #140840 passed with stage
in 11 minutes and 10 seconds
......@@ -163,6 +163,9 @@ Menu {
// Intercept up/down key to prevent ListView from accepting the key event.
clipboardMenu.view.Keys.upPressed.connect(clipboardMenu.arrowKeyPressed);
clipboardMenu.view.Keys.downPressed.connect(clipboardMenu.arrowKeyPressed);
// Focus on the search field when the applet is opened for the first time
filter.forceActiveFocus();
}
function goToCurrent() {
......
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