Fix for translation assistant (#669)
Originally committed to SVN as r1933.
This commit is contained in:
parent
30f12ef7e8
commit
03d4f3fc94
1 changed files with 4 additions and 0 deletions
|
@ -363,8 +363,12 @@ void DialogTranslation::OnTransBoxKey(wxKeyEvent &event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Close
|
||||||
if (event.GetKeyCode() == WXK_ESCAPE) EndModal(1);
|
if (event.GetKeyCode() == WXK_ESCAPE) EndModal(1);
|
||||||
|
|
||||||
|
// Ignore enter
|
||||||
|
if (event.GetKeyCode() == WXK_RETURN || event.GetKeyCode() == WXK_NUMPAD_ENTER) return;
|
||||||
|
|
||||||
// Skip anything else
|
// Skip anything else
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue