summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2023-10-26 00:18:09 +0300
committerMavridis Philippe <mavridisf@gmail.com>2023-10-26 00:18:09 +0300
commit30cc7c2464faae2a768052da092daa6705fa5401 (patch)
treef3fe324634f55a6394fa5b2b8f22a20398d48923 /src
parent56af33c56075b18fe6f4b50cb63771d7f3653fab (diff)
downloadtastymenu-30cc7c2464faae2a768052da092daa6705fa5401.tar.gz
tastymenu-30cc7c2464faae2a768052da092daa6705fa5401.zip
Add Esc shortcut to close menu
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/menuhandler.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}