Skip to content

Commit

Permalink
fix: Enter key to jump to category section
Browse files Browse the repository at this point in the history
字母列表下,支持回车键选中焦点项。

实际上测试人员期望大部分按钮在有焦点的时候都可以通过 Enter
键触发,而不是 Space 键。以后可能需要考虑其它方案做这件事。

Issue: linuxdeepin/developer-center#6154
Log:
  • Loading branch information
BLumia committed Nov 13, 2023
1 parent 10fb72f commit 25856cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qml/AlphabetCategory.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ ColumnLayout {
onClicked: {
categoryClicked(modelData)
}
Keys.onReturnPressed: {
onClicked()
}
}
}

Expand Down

0 comments on commit 25856cd

Please sign in to comment.