Skip to content

Instantly share code, notes, and snippets.

@kimmoli

kimmoli/Keystest.qml

Last active Jun 3, 2017
Embed
What would you like to do?
Keystest
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