From b02efcef882446d1eaaf83d275f901c1ceae63e2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 19 Nov 2014 10:14:29 +0100 Subject: [PATCH] MediaPlayer: reintroduce "stop" shortcut. It turns out there are some people actually using it, mainly when playing music. If you interrupt music, you often want to start listeing from the start of the track again (unlike for video), so having a stop button makes sense in that case. --- src/apps/mediaplayer/MainWin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index 5c37053e0a..90678c16b4 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -2257,8 +2257,9 @@ MainWin::_KeyDown(BMessage* msg) case 0x4e: fController->Pause(); return true; - // 0x4f would be the "stop" button, but this is too dangerous to be - // triggered with a single key (it loses the current position) + case 0x4f: + fController->Stop(); + return true; case 0x50: PostMessage(M_SKIP_NEXT); return true;