From 7db41df697ba328d56b704f48ef7ad1d2684b56b Mon Sep 17 00:00:00 2001 From: lsv Date: Wed, 15 Oct 2025 11:31:54 +0500 Subject: [PATCH] Press ESC close context help window (Linux) --- include/utils/popuphelp.h | 6 ++++++ 1 file changed, 6 insertions(+) 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();