Support menu key for room/member lists currentItem
Allow opening context menu for AccountDelegate, RoomDelegate and MemberDelegate by selecting an item with up/down (when focusing filter field) and pressing the menu key.
This commit is contained in:
parent
10eeb662af
commit
08f15b6a01
|
@ -55,6 +55,10 @@ Rectangle {
|
|||
if (window.settings.clearRoomFilterOnEnter) text = ""
|
||||
}
|
||||
|
||||
Keys.onMenuPressed:
|
||||
if (roomList.currentItem)
|
||||
roomList.currentItem.doRightClick(false)
|
||||
|
||||
Keys.onEscapePressed: {
|
||||
mainPane.toggleFocus()
|
||||
if (window.settings.clearRoomFilterOnEscape) text = ""
|
||||
|
|
|
@ -43,6 +43,9 @@ HColumnLayout {
|
|||
currentItem.leftClicked()
|
||||
currentItem.clicked()
|
||||
}
|
||||
|
||||
Keys.onMenuPressed:
|
||||
if (currentItem) currentItem.doRightClick(false)
|
||||
}
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user