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) {
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue