From 9ab04c7ea365718bca4d63e62cc909e75dc0cb70 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Mon, 16 Jul 2007 03:17:11 +0000 Subject: [PATCH] demi's patches #2: fixed x button on translation assistant Originally committed to SVN as r1426. --- aegisub/dialog_translation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/dialog_translation.cpp b/aegisub/dialog_translation.cpp index d44ae498f..0dcf6c945 100644 --- a/aegisub/dialog_translation.cpp +++ b/aegisub/dialog_translation.cpp @@ -356,6 +356,8 @@ void DialogTranslation::OnTransBoxKey(wxKeyEvent &event) { return; } + if (event.GetKeyCode() == WXK_ESCAPE) EndModal(1); + // Skip anything else event.Skip(); }