Add account settings keybinds
This commit is contained in:
parent
e32747d434
commit
c0adf8353b
|
@ -132,6 +132,7 @@ class UISettings(JSONConfigFile):
|
|||
|
||||
"focusSidePane": ["Alt+S"],
|
||||
"clearRoomFilter": ["Alt+Shift+S"],
|
||||
"accountSettings": ["Alt+A"],
|
||||
"addNewChat": ["Alt+N"],
|
||||
"addNewAccount": ["Alt+Shift+N"],
|
||||
|
||||
|
|
|
@ -110,6 +110,21 @@ HShortcutHandler {
|
|||
onPressed: mainUI.sidePane.sidePaneList.addNewChat()
|
||||
}
|
||||
|
||||
|
||||
HShortcut {
|
||||
enabled: mainUI.accountsPresent
|
||||
sequences: settings.keys.accountSettings
|
||||
onPressed: mainUI.sidePane.sidePaneList.accountSettings()
|
||||
}
|
||||
|
||||
|
||||
HShortcut {
|
||||
enabled: mainUI.accountsPresent
|
||||
sequences: settings.keys.toggleCollapseAccount
|
||||
onPressed: mainUI.sidePane.sidePaneList.toggleCollapseAccount()
|
||||
}
|
||||
|
||||
|
||||
HShortcut {
|
||||
enabled: mainUI.accountsPresent
|
||||
sequences: settings.keys.goToPreviousRoom
|
||||
|
@ -124,12 +139,6 @@ HShortcutHandler {
|
|||
onHeld: pressed(event)
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
enabled: mainUI.accountsPresent
|
||||
sequences: settings.keys.toggleCollapseAccount
|
||||
onPressed: mainUI.sidePane.sidePaneList.toggleCollapseAccount()
|
||||
}
|
||||
|
||||
|
||||
// Chat
|
||||
|
||||
|
|
|
@ -72,6 +72,15 @@ HListView {
|
|||
currentItem.item.activated()
|
||||
}
|
||||
|
||||
function accountSettings() {
|
||||
if (! currentItem) incrementCurrentIndex()
|
||||
|
||||
pageLoader.showPage(
|
||||
"EditAccount/EditAccount",
|
||||
{userId: currentItem.item.delegateModel.user_id},
|
||||
)
|
||||
}
|
||||
|
||||
function addNewChat() {
|
||||
if (! currentItem) incrementCurrentIndex()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user