diff --git a/include/utils/popuphelp.h b/include/utils/popuphelp.h index 3d9d8f0..6880e04 100644 --- a/include/utils/popuphelp.h +++ b/include/utils/popuphelp.h @@ -139,6 +139,12 @@ public: //ctext=htmlWindow->SelectionToText(); //wxString s = wxString::Format("cell = %s",ctext.c_str()); }); + htmlWindow->Bind(wxEVT_KEY_DOWN, [&](wxKeyEvent& event) { + if (event.GetKeyCode() == WXK_ESCAPE) { + Hide(); + return; + } + }); htmlWindow->Bind(wxEVT_RIGHT_UP, [&](wxMouseEvent& event) { wxString name; wxLongLong e = wxGetLocalTimeMillis();