Verified Commit 76615784 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
parent 95a267d5
Pipeline #126032 passed with stage
in 4 minutes and 38 seconds
......@@ -160,6 +160,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