Add clear messages shortcut
This commit is contained in:
@@ -177,7 +177,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
HNoticePage {
|
||||
text: qsTr("No messages to show yet")
|
||||
text: qsTr("No messages to show yet.")
|
||||
|
||||
visible: eventList.model.count < 1
|
||||
anchors.fill: parent
|
||||
|
@@ -109,4 +109,17 @@ HShortcutHandler {
|
||||
sequences: settings.keys.toggleCollapseAccount
|
||||
onPressed: mainUI.sidePane.sidePaneList.toggleCollapseAccount()
|
||||
}
|
||||
|
||||
|
||||
// Chat
|
||||
|
||||
HShortcut {
|
||||
enabled: window.uiState.page == "Chat/Chat.qml"
|
||||
sequences: settings.keys.clearRoomMessages
|
||||
onPressed: py.callClientCoro(
|
||||
window.uiState.pageProperties.userId,
|
||||
"clear_events",
|
||||
[window.uiState.pageProperties.roomId],
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user