summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-10-05 10:36:53 +0300
committerMavridis Philippe <[email protected]>2021-10-05 10:36:53 +0300
commitc3d4d73313a3241026b96cbad0cabc12782135a2 (patch)
treef2d8bb1d4961f6870c682c46187fd4f2115c9d29 /kcontrol
parent4a60c1ead4edf7d88941f878b3f30f0ffe4cfad0 (diff)
downloadtdebase-c3d4d73313a3241026b96cbad0cabc12782135a2.tar.gz
tdebase-c3d4d73313a3241026b96cbad0cabc12782135a2.zip
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 <[email protected]>
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/kicker/menutab_impl.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}