From b6c43381e1f6ce82f02fd34bd12d5e3e06e57afe Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Tue, 5 Oct 2021 10:36:53 +0300 Subject: Search cut: Add check for Escape key We cannot accept the Escape key as a search shortcut as it is bound to other actions already. Signed-off-by: Mavridis Philippe (cherry picked from commit c3d4d73313a3241026b96cbad0cabc12782135a2) --- kcontrol/kicker/menutab_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kcontrol/kicker') diff --git a/kcontrol/kicker/menutab_impl.cpp b/kcontrol/kicker/menutab_impl.cpp index 7a3bc768b..e00c51e78 100644 --- a/kcontrol/kicker/menutab_impl.cpp +++ b/kcontrol/kicker/menutab_impl.cpp @@ -359,5 +359,8 @@ void MenuTab::kmenuChanged() void MenuTab::setSearchShortcut(const TDEShortcut &cut) { + if( cut == TDEShortcut(TQt::Key_Escape) ) + return; + m_searchShortcut->setShortcut(cut, false); } -- cgit v1.2.1