Also forward page up/down and home/end from the video slider to the subs grid
This commit is contained in:
parent
51edb4caca
commit
c7aba2f54a
1 changed files with 12 additions and 7 deletions
|
@ -170,13 +170,18 @@ void VideoSlider::OnCharHook(wxKeyEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoSlider::OnKeyDown(wxKeyEvent &event) {
|
void VideoSlider::OnKeyDown(wxKeyEvent &event) {
|
||||||
// Forward up/down to grid as those aren't yet handled by commands
|
// Forward up/down/pgup/pgdn/home/end to grid as those aren't yet handled by commands
|
||||||
if (event.GetKeyCode() == WXK_UP || event.GetKeyCode() == WXK_DOWN) {
|
switch (event.GetKeyCode()) {
|
||||||
c->subsGrid->GetEventHandler()->ProcessEvent(event);
|
case WXK_UP:
|
||||||
c->subsGrid->SetFocus();
|
case WXK_DOWN:
|
||||||
}
|
case WXK_PAGEUP:
|
||||||
else {
|
case WXK_PAGEDOWN:
|
||||||
event.Skip();
|
case WXK_HOME:
|
||||||
|
case WXK_END:
|
||||||
|
c->subsGrid->GetEventHandler()->ProcessEvent(event);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue