mirror of https://github.com/odrling/Aegisub
Unskip key events handled by the non-command keypress handling in BaseGrid
hotkey::check marks non-matching events as skipped, so the default key event handler was running even if BaseGrid did something with the keypress. Closes #1464. Originally committed to SVN as r6667.
This commit is contained in:
parent
01f3049c0f
commit
9f3fd691e2
|
@ -1008,6 +1008,8 @@ void BaseGrid::OnKeyDown(wxKeyEvent &event) {
|
|||
|
||||
// Moving
|
||||
if (dir) {
|
||||
event.Skip(false);
|
||||
|
||||
int old_extend = extendRow;
|
||||
int next = mid(0, GetDialogueIndex(active_line) + dir * step, GetRows() - 1);
|
||||
SetActiveLine(GetDialogue(next));
|
||||
|
|
|
@ -255,6 +255,5 @@ void DialogStyling::OnKeyDown(wxKeyEvent &evt) {
|
|||
if (from > 0)
|
||||
style_name->SetSelection(from - 1, to);
|
||||
}
|
||||
evt.Skip();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,8 +157,6 @@ void VideoSlider::OnKeyDown(wxKeyEvent &event) {
|
|||
c->subsGrid->GetEventHandler()->ProcessEvent(event);
|
||||
c->subsGrid->SetFocus();
|
||||
}
|
||||
else
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
void VideoSlider::OnPaint(wxPaintEvent &) {
|
||||
|
|
Loading…
Reference in New Issue