From f95f1f13cf1252e7e55cd5f7985bd5cc435b6ab0 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 5 Dec 2011 05:26:52 +0000 Subject: [PATCH] Don't block key events on the video slider when video is playing, as this makes stopping the video rather awkward and it's unneccesary Originally committed to SVN as r5963. --- aegisub/src/video_slider.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aegisub/src/video_slider.cpp b/aegisub/src/video_slider.cpp index d053d32d6..b6abee3f4 100644 --- a/aegisub/src/video_slider.cpp +++ b/aegisub/src/video_slider.cpp @@ -164,19 +164,14 @@ void VideoSlider::OnMouse(wxMouseEvent &event) { } void VideoSlider::OnKeyDown(wxKeyEvent &event) { - if (c->videoController->IsPlaying()) return; - if (hotkey::check("Video", c, event.GetKeyCode(), event.GetUnicodeKey(), event.GetModifiers())) return; - // Forward up/down to grid + // Forward up/down to grid as those aren't yet handled by commands if (event.GetKeyCode() == WXK_UP || event.GetKeyCode() == WXK_DOWN) { c->subsGrid->GetEventHandler()->ProcessEvent(event); c->subsGrid->SetFocus(); - return; } - - event.Skip(); } void VideoSlider::OnPaint(wxPaintEvent &event) {