Last active
June 3, 2017 13:47
-
-
Save kimmoli/a684a0d7288e1f5654b80701e0ed9a74 to your computer and use it in GitHub Desktop.
Keystest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import Sailfish.Media 1.0 | |
Page | |
{ | |
MediaKey { enabled: true; key: Qt.Key_MediaTogglePlayPause; onReleased: console.log("playPause") } | |
MediaKey { enabled: true; key: Qt.Key_MediaPlay; onReleased: console.log("play") } | |
MediaKey { enabled: true; key: Qt.Key_MediaPause; onReleased: console.log("pause") } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment