We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4303e commit 14d7e40Copy full SHA for 14d7e40
src/app/main.qml
@@ -6,6 +6,7 @@ import QtQuick.Layouts
6
import ScratchCPP
7
import ScratchCPP.UiComponents
8
import ScratchCPP.Render
9
+import ScratchCPP.Keyboard
10
11
ApplicationWindow {
12
id: root
@@ -44,9 +45,13 @@ ApplicationWindow {
44
45
icon.name: "green_flag"
46
icon.color: "transparent"
47
onClicked: {
- player.stop()
48
- player.start()
49
- player.forceActiveFocus(Qt.TabFocusReason);
+ if (KeyboardInfo.keyboardModifiers() === Qt.ShiftModifier)
+ AppMenuBar.turboMode = !AppMenuBar.turboMode
50
+ else {
51
+ player.stop()
52
+ player.start()
53
+ player.forceActiveFocus(Qt.TabFocusReason);
54
+ }
55
}
56
57
0 commit comments