Add leaveRoom and forgetRoom keybinds
This commit is contained in:
parent
2a648d7f59
commit
6e63569ad7
|
@ -288,6 +288,8 @@ class UISettings(JSONDataFile):
|
||||||
"sendFile": ["Alt+S"],
|
"sendFile": ["Alt+S"],
|
||||||
"sendFileFromPathInClipboard": ["Alt+Shift+S"],
|
"sendFileFromPathInClipboard": ["Alt+Shift+S"],
|
||||||
"inviteToRoom": ["Alt+I"],
|
"inviteToRoom": ["Alt+I"],
|
||||||
|
"leaveRoom": ["Alt+Escape"],
|
||||||
|
"forgetRoom": ["Alt+Shift+Escape"],
|
||||||
|
|
||||||
"toggleFocusRoomPane": ["Alt+R"],
|
"toggleFocusRoomPane": ["Alt+R"],
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,6 +26,24 @@ Item {
|
||||||
readonly property alias roomPane: roomPaneLoader.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 {
|
Timer {
|
||||||
interval: 100
|
interval: 100
|
||||||
running: ! userInfo
|
running: ! userInfo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user