From a3cd00f89811c8067160b320312175e92116d99b Mon Sep 17 00:00:00 2001 From: Palo Kisa Date: Thu, 3 Oct 2024 01:18:13 +0200 Subject: [PATCH] mainmenu: Avoid menu navigation while filtering --- plugin-mainmenu/lxqtmainmenu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin-mainmenu/lxqtmainmenu.cpp b/plugin-mainmenu/lxqtmainmenu.cpp index 39a02abdb..491a913dd 100644 --- a/plugin-mainmenu/lxqtmainmenu.cpp +++ b/plugin-mainmenu/lxqtmainmenu.cpp @@ -680,6 +680,9 @@ bool LXQtMainMenu::eventFilter(QObject *obj, QEvent *event) } // go to the menu item which starts with the pressed key if there is an active action. + // Note: avoid menu navigation, if any of search widgets has focus + if (mSearchEdit->hasFocus() || mSearchView->hasFocus()) + return false; QString key = keyEvent->text(); if(key.isEmpty()) return false;