Add leaveRoom and forgetRoom keybinds
This commit is contained in:
parent
2a648d7f59
commit
6e63569ad7
|
@ -288,6 +288,8 @@ class UISettings(JSONDataFile):
|
|||
"sendFile": ["Alt+S"],
|
||||
"sendFileFromPathInClipboard": ["Alt+Shift+S"],
|
||||
"inviteToRoom": ["Alt+I"],
|
||||
"leaveRoom": ["Alt+Escape"],
|
||||
"forgetRoom": ["Alt+Shift+Escape"],
|
||||
|
||||
"toggleFocusRoomPane": ["Alt+R"],
|
||||
},
|
||||
|
|
|
@ -26,6 +26,24 @@ Item {
|
|||
readonly property alias roomPane: roomPaneLoader.item
|
||||
|
||||
|
||||
HShortcut {
|
||||
sequences: window.settings.keys.leaveRoom
|
||||
onActivated: utils.makePopup(
|
||||
"Popups/LeaveRoomPopup.qml",
|
||||
chat,
|
||||
{userId, roomId, roomName: roomInfo.display_name},
|
||||
)
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
sequences: window.settings.keys.forgetRoom
|
||||
onActivated: utils.makePopup(
|
||||
"Popups/ForgetRoomPopup.qml",
|
||||
chat,
|
||||
{userId, roomId, roomName: roomInfo.display_name},
|
||||
)
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 100
|
||||
running: ! userInfo
|
||||
|
|
Loading…
Reference in New Issue
Block a user