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:
miruka 2020-07-09 20:51:35 -04:00
parent cfde6cb633
commit c35894e4c8
2 changed files with 6 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# TODO # TODO
- fix members not synced bug
- fix local unread counters order
- fix highlight when logging in to new account - fix highlight when logging in to new account
- warn about no E2E room shared if no devices - warn about no E2E room shared if no devices
- Make HTile enter key trigger leftClicked()
## Refactoring ## Refactoring

View File

@ -8,6 +8,10 @@ HButton {
topPadding: padded ? spacing / (compact ? 4 : 2) : 0 topPadding: padded ? spacing / (compact ? 4 : 2) : 0
bottomPadding: topPadding bottomPadding: topPadding
Keys.onEnterPressed: leftClicked()
Keys.onReturnPressed: leftClicked()
Keys.onSpacePressed: leftClicked()
signal leftClicked() signal leftClicked()
signal rightClicked() signal rightClicked()