diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-10-29 19:04:58 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-10-29 19:04:58 +0200 |
commit | d6d86f402ba981871269f0238f2d7fed31fa4bf3 (patch) | |
tree | d84a855ceaa6e984634d3f54e85164348dc3f2dc /src | |
parent | f35238706e90adef55450e93b4abdeea9c9aa3bb (diff) | |
download | tastymenu-d6d86f402ba981871269f0238f2d7fed31fa4bf3.tar.gz tastymenu-d6d86f402ba981871269f0238f2d7fed31fa4bf3.zip |
Minor improvements
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/menuhandler.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/menuhandler.cpp b/src/menuhandler.cpp index 05ea617..f4062c0 100644 --- a/src/menuhandler.cpp +++ b/src/menuhandler.cpp @@ -378,6 +378,7 @@ bool MenuHandler::eventFilter( TQObject *o, TQEvent * e ) case TQt::Key_Escape: close(); + return true; default: if (!keyEvent->text().isNull() && !menu->searchLine->hasFocus()) { @@ -389,19 +390,6 @@ bool MenuHandler::eventFilter( TQObject *o, TQEvent * e ) } return true; } - //for some reasons clicking with the right mouse button on the searchline everything crashes... -/* else if( e->type() == TQEvent::MouseButtonPress && o == menu->searchLine ) - {return true; - TQMouseEvent *mouseEvent = (TQMouseEvent *)e; - - if( mouseEvent->button() != TQMouseEvent::RightButton ) - return true; - - if( menu->searchLine->text().length() < 4 ) - return true; - else - return false; - }*/ else return false; } |