HTile: trigger leftClicked() on enter/return/space
This makes it possible to activate any tab-focused HTile with the keyboard.
This commit is contained in:
parent
cfde6cb633
commit
c35894e4c8
3
TODO.md
3
TODO.md
|
@ -1,8 +1,9 @@
|
|||
# TODO
|
||||
|
||||
- fix members not synced bug
|
||||
- fix local unread counters order
|
||||
- fix highlight when logging in to new account
|
||||
- warn about no E2E room shared if no devices
|
||||
- Make HTile enter key trigger leftClicked()
|
||||
|
||||
## Refactoring
|
||||
|
||||
|
|
|
@ -8,6 +8,10 @@ HButton {
|
|||
topPadding: padded ? spacing / (compact ? 4 : 2) : 0
|
||||
bottomPadding: topPadding
|
||||
|
||||
Keys.onEnterPressed: leftClicked()
|
||||
Keys.onReturnPressed: leftClicked()
|
||||
Keys.onSpacePressed: leftClicked()
|
||||
|
||||
|
||||
signal leftClicked()
|
||||
signal rightClicked()
|
||||
|
|
Loading…
Reference in New Issue
Block a user