Commit 6c65872e authored by Sebastian Gottfried's avatar Sebastian Gottfried
Browse files

Training Screen: Activate Menu With Escape

Now there is a handy shortcut to pause the training session. Closing
the menu works the same way.
parent 9fe18509
......@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.4
import QtQuick 2.5
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import ktouch 1.0
......@@ -122,6 +122,20 @@ FocusScope {
id: referenceStats
}
Shortcut {
sequence: "Escape"
enabled: screen.visible
onActivated: {
if (menuOverlay.opacity === 0) {
menuOverlay.show()
}
else {
menuOverlay.hide()
}
}
}
ColumnLayout {
id: screenContent
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment