diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-10-05 10:36:53 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-10-05 10:36:53 +0300 |
commit | c3d4d73313a3241026b96cbad0cabc12782135a2 (patch) | |
tree | f2d8bb1d4961f6870c682c46187fd4f2115c9d29 | |
parent | 4a60c1ead4edf7d88941f878b3f30f0ffe4cfad0 (diff) | |
download | tdebase-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 <mavridisf@gmail.com>
-rw-r--r-- | kcontrol/kicker/menutab_impl.cpp | 3 |
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); } |