Also forward page up/down and home/end from the video slider to the subs grid

This commit is contained in:
tophf 2013-08-14 20:06:16 -07:00 committed by Thomas Goyne
parent 51edb4caca
commit c7aba2f54a

View file

@ -170,13 +170,18 @@ void VideoSlider::OnCharHook(wxKeyEvent &event) {
}
void VideoSlider::OnKeyDown(wxKeyEvent &event) {
// 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();
}
else {
event.Skip();
// Forward up/down/pgup/pgdn/home/end to grid as those aren't yet handled by commands
switch (event.GetKeyCode()) {
case WXK_UP:
case WXK_DOWN:
case WXK_PAGEUP:
case WXK_PAGEDOWN:
case WXK_HOME:
case WXK_END:
c->subsGrid->GetEventHandler()->ProcessEvent(event);
break;
default:
event.Skip();
}
}