Add Alt+Enter button to Utilities page, update Win Alt+Tab func

Requested in this reddit post:
https://www.reddit.com/r/Vive/comments/agnvux/advanced_settings_280_motion_smoothing_audio_and/ee7muqo/

Use case is toggling full screen mode on applications.

The Alt+Tab function has been updated with a constexpr var that reduces
duplication in the function calls and makes the keys even more explicit.
This commit is contained in:
Vasily
2019-01-23 18:49:10 +01:00
parent c10e45d2ab
commit 0a49c7a717
8 changed files with 59 additions and 10 deletions
+14 -5
View File
@@ -42,10 +42,11 @@ MyStackViewPage {
RowLayout {
spacing: 18
Layout.fillWidth: true
MyPushButton {
text: "Keyboard Input"
Layout.preferredWidth: 200
Layout.fillWidth: true
onClicked: {
OverlayController.showKeyboard("", 601)
}
@@ -61,7 +62,7 @@ MyStackViewPage {
MyPushButton {
text: "Enter"
Layout.preferredWidth: 200
Layout.fillWidth: true
onClicked: {
UtilitiesTabController.sendKeyboardEnter()
}
@@ -69,7 +70,7 @@ MyStackViewPage {
MyPushButton {
text: "Alt-Tab"
Layout.preferredWidth: 200
Layout.fillWidth: true
onClicked: {
UtilitiesTabController.sendKeyboardAltTab()
}
@@ -77,7 +78,7 @@ MyStackViewPage {
MyPushButton {
text: "Backspace"
Layout.preferredWidth: 200
Layout.fillWidth: true
onClicked: {
UtilitiesTabController.sendKeyboardBackspace(1)
}
@@ -85,11 +86,19 @@ MyStackViewPage {
MyPushButton {
text: "10x Backspace"
Layout.preferredWidth: 200
Layout.fillWidth: true
onClicked: {
UtilitiesTabController.sendKeyboardBackspace(10)
}
}
MyPushButton {
text: "Alt-Enter"
Layout.fillWidth: true
onClicked: {
UtilitiesTabController.sendKeyboardAltEnter()
}
}
}
}
}