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.
This commit is contained in:
Thomas Goyne 2011-12-05 05:26:52 +00:00
parent 2e40652265
commit f95f1f13cf

View file

@ -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) {