From 3a8eb34e350605146af750ddea1009fe08ba116f Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 3 May 2012 01:54:29 +0200 Subject: [PATCH] Map Play key to playPause() action --- src/TomahawkWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TomahawkWindow.cpp b/src/TomahawkWindow.cpp index aa7d60148..1948c4b77 100644 --- a/src/TomahawkWindow.cpp +++ b/src/TomahawkWindow.cpp @@ -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";