1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

Map Play key to playPause() action

This commit is contained in:
Dominik Schmidt 2012-05-03 01:54:29 +02:00
parent 697599db6c
commit 3a8eb34e35

View File

@ -416,12 +416,11 @@ TomahawkWindow::keyPressEvent( QKeyEvent* e )
bool accept = true;
#if ! defined ( Q_WS_MAC )
#define KEY_PRESSED Q_FUNC_INFO << "Multimedia Key Pressed: "
switch( e->key() )
{
case Qt::Key_MediaPlay:
tLog() << KEY_PRESSED << "Play";
AudioEngine::instance()->play();
AudioEngine::instance()->playPause();
break;
case Qt::Key_MediaStop:
tLog() << KEY_PRESSED << "Stop";