Fix for translation assistant (#669)

Originally committed to SVN as r1933.
This commit is contained in:
Rodrigo Braz Monteiro 2008-03-06 23:21:03 +00:00
parent 30f12ef7e8
commit 03d4f3fc94
1 changed files with 4 additions and 0 deletions

View File

@ -363,8 +363,12 @@ void DialogTranslation::OnTransBoxKey(wxKeyEvent &event) {
return;
}
// Close
if (event.GetKeyCode() == WXK_ESCAPE) EndModal(1);
// Ignore enter
if (event.GetKeyCode() == WXK_RETURN || event.GetKeyCode() == WXK_NUMPAD_ENTER) return;
// Skip anything else
event.Skip();
}