mirror of https://github.com/odrling/Aegisub
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:
parent
2e40652265
commit
f95f1f13cf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue