Add Ctrl+U shortcut for switching user
This is a key combination that doesn't seem to be used either in NeoChat nor with a common meaning in other chat clients, so let's use it for switching the user.
This commit is contained in:
@@ -74,7 +74,7 @@ QQC2.ToolBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
visible: switchUserButton.checked
|
visible: switchUserButton.checked
|
||||||
onVisibleChanged: if (visible) focus = true
|
onVisibleChanged: if (visible) accounts.forceActiveFocus()
|
||||||
clip: true
|
clip: true
|
||||||
model: AccountRegistry
|
model: AccountRegistry
|
||||||
|
|
||||||
@@ -183,6 +183,10 @@ QQC2.ToolBar {
|
|||||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
Layout.minimumWidth: Layout.preferredWidth
|
Layout.minimumWidth: Layout.preferredWidth
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
Shortcut {
|
||||||
|
sequence: "Ctrl+U"
|
||||||
|
onActivated: switchUserButton.toggle()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
icon.name: "list-add"
|
icon.name: "list-add"
|
||||||
|
|||||||
Reference in New Issue
Block a user