Open event context menu on menu keypress

This commit is contained in:
miruka 2020-07-09 22:17:15 -04:00
parent affd0d0bd3
commit 3e92b882c9
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# TODO
- event menu key right click
- focus first item in menu if opened by kb
- composer menu?
- fix members not synced bug
- fix local unread counters order

View File

@ -41,7 +41,7 @@ Rectangle {
Layout.fillHeight: true
Layout.fillWidth: true
MessageArea { id: messageArea}
MessageArea { id: messageArea }
}
UploadButton {

View File

@ -175,6 +175,11 @@ HTextArea {
Keys.onEnterPressed: ev => Keys.returnPressed(ev)
Keys.onMenuPressed: ev => {
if (eventList && eventList.currentItem)
eventList.currentItem.openContextMenu()
}
Keys.onTabPressed: ev => {
ev.accepted = true
textArea.insertAtCursor(indent)