mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
More shortcut stuff
This commit is contained in:
parent
155315ecbb
commit
d2c6252911
1 changed files with 5 additions and 5 deletions
|
@ -29,10 +29,6 @@ ApplicationWindow {
|
||||||
height: 380
|
height: 380
|
||||||
width: 340
|
width: 340
|
||||||
|
|
||||||
Keys.onShortcutOverride: event.accepted = ((event.key === Qt.Key_Return || event.key === Qt.Key_Enter) && event.modifiers & Qt.ControlModifier)
|
|
||||||
Keys.onEnterPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
|
||||||
Keys.onReturnPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: StandardKey.Cancel
|
sequence: StandardKey.Cancel
|
||||||
onActivated: inviteDialogRoot.close()
|
onActivated: inviteDialogRoot.close()
|
||||||
|
@ -43,6 +39,10 @@ ApplicationWindow {
|
||||||
anchors.margins: 10
|
anchors.margins: 10
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
|
Keys.onShortcutOverride: event.accepted = ((event.key === Qt.Key_Return || event.key === Qt.Key_Enter) && (event.modifiers & Qt.ControlModifier))
|
||||||
|
Keys.onEnterPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
||||||
|
Keys.onReturnPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("User ID to invite")
|
text: qsTr("User ID to invite")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -69,7 +69,7 @@ ApplicationWindow {
|
||||||
// onActivated: invitees.accept()
|
// onActivated: invitees.accept()
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Keys.onShortcutOverride: event.accepted = ((event.key === Qt.Key_Return || event.key === Qt.Key_Enter) && event.modifiers & Qt.ControlModifier)
|
Keys.onShortcutOverride: event.accepted = ((event.key === Qt.Key_Return || event.key === Qt.Key_Enter) && (event.modifiers & Qt.ControlModifier))
|
||||||
Keys.onEnterPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
Keys.onEnterPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
||||||
Keys.onReturnPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
Keys.onReturnPressed: if (event.modifiers & Qt.ControlModifier) invitees.accept()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue