From c3d4d73313a3241026b96cbad0cabc12782135a2 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 --- kcontrol/kicker/menutab_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kcontrol') 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