Skip to content
Snippets Groups Projects
Commit 484845c1 authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Add handy keyboard shortcuts

parent e9ed12e2
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,19 @@ ApplicationWindow {
width: 350
height: fontMetrics.lineSpacing * 7
Shortcut {
sequence: "Return"
onActivated: {
if (input.text.match("#.+?:.{3,}"))
dbb.accepted();
}
}
Shortcut {
sequence: StandardKey.Cancel
onActivated: dbb.rejected()
}
ColumnLayout {
spacing: Nheko.paddingMedium
anchors.margins: Nheko.paddingMedium
......@@ -41,6 +54,8 @@ ApplicationWindow {
}
footer: DialogButtonBox {
id: dbb
onAccepted: {
Nheko.joinRoom(input.text);
joinRoomRoot.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment