Add keybind to add new account
This commit is contained in:
parent
9077ea3925
commit
7eda87217c
|
@ -115,20 +115,22 @@ class UISettings(JSONConfigFile):
|
||||||
"theme": "Default.qpl",
|
"theme": "Default.qpl",
|
||||||
"writeAliases": {},
|
"writeAliases": {},
|
||||||
"keys": {
|
"keys": {
|
||||||
|
"startDebugger": ["Alt+Shift+D"],
|
||||||
"reloadConfig": "Alt+Shift+R",
|
"reloadConfig": "Alt+Shift+R",
|
||||||
|
|
||||||
"scrollUp": ["Alt+Up", "Alt+K"],
|
"scrollUp": ["Alt+Up", "Alt+K"],
|
||||||
"scrollDown": ["Alt+Down", "Alt+J"],
|
"scrollDown": ["Alt+Down", "Alt+J"],
|
||||||
|
|
||||||
"focusSidePane": ["Alt+S", "Ctrl+S"],
|
"focusSidePane": ["Alt+S", "Ctrl+S"],
|
||||||
"clearRoomFilter": ["Alt+Shift+S", "Ctrl+Shift+S"],
|
"clearRoomFilter": ["Alt+Shift+S", "Ctrl+Shift+S"],
|
||||||
|
"addNewAccount": ["Alt+N"],
|
||||||
|
|
||||||
"goToPreviousRoom": ["Alt+Shift+Up", "Alt+Shift+K"],
|
"goToPreviousRoom": ["Alt+Shift+Up", "Alt+Shift+K"],
|
||||||
"goToNextRoom": ["Alt+Shift+Down", "Alt+Shift+J"],
|
"goToNextRoom": ["Alt+Shift+Down", "Alt+Shift+J"],
|
||||||
|
|
||||||
"toggleCollapseAccount": [
|
"toggleCollapseAccount": [
|
||||||
"Alt+Shift+Left", "Alt+Shift+Right",
|
"Alt+Shift+Left", "Alt+Shift+Right",
|
||||||
"Alt+Shift+H", "Alt+Shift+L",
|
"Alt+Shift+H", "Alt+Shift+L",
|
||||||
],
|
],
|
||||||
|
|
||||||
"startDebugger": ["Alt+Shift+D"],
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,11 @@ HShortcutHandler {
|
||||||
onPressed: mainUI.sidePane.paneToolBar.roomFilter = ""
|
onPressed: mainUI.sidePane.paneToolBar.roomFilter = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HShortcut {
|
||||||
|
sequences: settings.keys.addNewAccount
|
||||||
|
onPressed: mainUI.sidePane.paneToolBar.addAccountButton.clicked()
|
||||||
|
}
|
||||||
|
|
||||||
HShortcut {
|
HShortcut {
|
||||||
sequences: settings.keys.goToPreviousRoom
|
sequences: settings.keys.goToPreviousRoom
|
||||||
onPressed: mainUI.sidePane.accountRoomList.previous()
|
onPressed: mainUI.sidePane.accountRoomList.previous()
|
||||||
|
|
|
@ -5,7 +5,8 @@ import "../Base"
|
||||||
HRowLayout {
|
HRowLayout {
|
||||||
id: toolBar
|
id: toolBar
|
||||||
|
|
||||||
property alias filterField: filterField
|
readonly property alias addAccountButton: addAccountButton
|
||||||
|
readonly property alias filterField: filterField
|
||||||
property alias roomFilter: filterField.text
|
property alias roomFilter: filterField.text
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -13,6 +14,7 @@ HRowLayout {
|
||||||
Layout.maximumHeight: Layout.minimumHeight
|
Layout.maximumHeight: Layout.minimumHeight
|
||||||
|
|
||||||
HButton {
|
HButton {
|
||||||
|
id: addAccountButton
|
||||||
icon.name: "add-account"
|
icon.name: "add-account"
|
||||||
toolTip.text: qsTr("Add another account")
|
toolTip.text: qsTr("Add another account")
|
||||||
backgroundColor: theme.sidePane.settingsButton.background
|
backgroundColor: theme.sidePane.settingsButton.background
|
||||||
|
|
Loading…
Reference in New Issue
Block a user