File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ Rectangle {
159159 resultPopup .initialKeyUp ()
160160 resultPopup .forceActiveFocus ()
161161 }
162+ Keys .onEnterPressed : () => resultPopup .triggerPrimaryAction ()
163+ Keys .onReturnPressed : () => resultPopup .triggerPrimaryAction ()
162164 Keys .onEscapePressed : () => {
163165 if (searchField .text .trim () === " " ) {
164166 const nextItem = searchField .nextItemInFocusChain (true )
Original file line number Diff line number Diff line change 3939 resultPopup .initialKeyUp ()
4040 resultPopup .forceActiveFocus ()
4141 }
42+ Keys .onEnterPressed : () => resultPopup .triggerPrimaryAction ()
43+ Keys .onReturnPressed : () => resultPopup .triggerPrimaryAction ()
4244 Keys .onEscapePressed : () => {
4345 if (searchField .text .trim () === " " ) {
4446 const nextItem = searchField .nextItemInFocusChain (true )
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ Popup {
3636
3737 readonly property int colWidth: flickableContainer .width / 3
3838
39+ onSearchTextChanged : () => Qt .callLater (keyNavigator .keyDown )
40+
3941 function initialKeyDown () { keyNavigator .keyDown () }
4042 function initialKeyUp () { keyNavigator .keyUp () }
4143
You can’t perform that action at this time.
0 commit comments