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>
pull/230/head
Mavridis Philippe 3 years ago
parent 4a60c1ead4
commit c3d4d73313
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -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);
}

Loading…
Cancel
Save