Highlight first item when opening context menu

This commit is contained in:
miruka 2020-07-09 22:20:40 -04:00
parent 3e92b882c9
commit 9612470c9c
2 changed files with 1 additions and 1 deletions

View File

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

View File

@ -35,6 +35,7 @@ Menu {
onOpened: { onOpened: {
window.visibleMenus[uuid] = this window.visibleMenus[uuid] = this
window.visibleMenusChanged() window.visibleMenusChanged()
menu.currentIndex = 0
} }
onClosed: { onClosed: {
if (focusOnClosed) focusOnClosed.forceActiveFocus() if (focusOnClosed) focusOnClosed.forceActiveFocus()