From 30cc7c2464faae2a768052da092daa6705fa5401 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 26 Oct 2023 00:18:09 +0300 Subject: Add Esc shortcut to close menu Signed-off-by: Mavridis Philippe --- src/menuhandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/menuhandler.cpp b/src/menuhandler.cpp index 55903ba..8eaeabb 100644 --- a/src/menuhandler.cpp +++ b/src/menuhandler.cpp @@ -375,9 +375,11 @@ bool MenuHandler::eventFilter( TQObject *o, TQEvent * e ) break; } + case TQt::Key_Escape: + close(); + default: return false; - break; } return true; } -- cgit v1.2.1