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:
parent
697599db6c
commit
3a8eb34e35
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user