mirror of https://github.com/odrling/Aegisub
Fix for translation assistant (#669)
Originally committed to SVN as r1933.
This commit is contained in:
parent
30f12ef7e8
commit
03d4f3fc94
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue