diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-10-26 00:18:09 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-10-26 00:18:09 +0300 |
commit | 30cc7c2464faae2a768052da092daa6705fa5401 (patch) | |
tree | f3fe324634f55a6394fa5b2b8f22a20398d48923 /src | |
parent | 56af33c56075b18fe6f4b50cb63771d7f3653fab (diff) | |
download | tastymenu-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.cpp | 4 |
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; } |