diff options
author | Mavridis Philippe <[email protected]> | 2021-10-05 10:36:53 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-10-05 10:44:17 +0300 |
commit | b6c43381e1f6ce82f02fd34bd12d5e3e06e57afe (patch) | |
tree | 8de80420d5eec8b69fb06fa4de907ad8fc7f77fd /kcontrol/kicker | |
parent | ef673da5107489307a136eef7a94ee6087dc9e0a (diff) | |
download | tdebase-b6c43381e1f6ce82f02fd34bd12d5e3e06e57afe.tar.gz tdebase-b6c43381e1f6ce82f02fd34bd12d5e3e06e57afe.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]>
(cherry picked from commit c3d4d73313a3241026b96cbad0cabc12782135a2)
Diffstat (limited to 'kcontrol/kicker')
-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); } |