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:
Thomas Goyne 2012-04-06 03:53:38 +00:00
parent 01f3049c0f
commit 9f3fd691e2
3 changed files with 2 additions and 3 deletions

View File

@ -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));

View File

@ -255,6 +255,5 @@ void DialogStyling::OnKeyDown(wxKeyEvent &evt) {
if (from > 0)
style_name->SetSelection(from - 1, to);
}
evt.Skip();
}
}

View File

@ -157,8 +157,6 @@ void VideoSlider::OnKeyDown(wxKeyEvent &event) {
c->subsGrid->GetEventHandler()->ProcessEvent(event);
c->subsGrid->SetFocus();
}
else
event.Skip();
}
void VideoSlider::OnPaint(wxPaintEvent &) {