Add keybind to add new account
This commit is contained in:
@@ -44,6 +44,11 @@ HShortcutHandler {
|
||||
onPressed: mainUI.sidePane.paneToolBar.roomFilter = ""
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
sequences: settings.keys.addNewAccount
|
||||
onPressed: mainUI.sidePane.paneToolBar.addAccountButton.clicked()
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
sequences: settings.keys.goToPreviousRoom
|
||||
onPressed: mainUI.sidePane.accountRoomList.previous()
|
||||
|
@@ -5,7 +5,8 @@ import "../Base"
|
||||
HRowLayout {
|
||||
id: toolBar
|
||||
|
||||
property alias filterField: filterField
|
||||
readonly property alias addAccountButton: addAccountButton
|
||||
readonly property alias filterField: filterField
|
||||
property alias roomFilter: filterField.text
|
||||
|
||||
Layout.fillWidth: true
|
||||
@@ -13,6 +14,7 @@ HRowLayout {
|
||||
Layout.maximumHeight: Layout.minimumHeight
|
||||
|
||||
HButton {
|
||||
id: addAccountButton
|
||||
icon.name: "add-account"
|
||||
toolTip.text: qsTr("Add another account")
|
||||
backgroundColor: theme.sidePane.settingsButton.background
|
||||
|
Reference in New Issue
Block a user