Unselect before unfocusing messages with keybind

This commit is contained in:
miruka 2020-04-03 07:48:41 -04:00
parent b48e663007
commit 1e049a0159
2 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,5 @@
# TODO
- being able to redact local echos
- unselect before unfocusing
## Refactoring
- Rewrite account settings using `HTabbedContainer`

View File

@ -18,9 +18,9 @@ Rectangle {
HShortcut {
sequences: window.settings.keys.unfocusOrDeselectAllMessages
onActivated: {
eventList.currentIndex !== -1 ?
eventList.currentIndex = -1 :
eventList.checked = {}
eventList.selectedCount ?
eventList.checked = {} :
eventList.currentIndex = -1
}
}