mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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
@ -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…
x
Reference in New Issue
Block a user