diff --git a/scanpopup.cc b/scanpopup.cc index a968fa40..b29b1c75 100644 --- a/scanpopup.cc +++ b/scanpopup.cc @@ -558,7 +558,7 @@ void ScanPopup::mouseHovered( QString const & str, bool forcePopup ) void ScanPopup::handleInputWord( QString const & str, bool forcePopup ) { - QString sanitizedStr = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( str ) ) ); + QString sanitizedStr = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( str ) ) ).simplified(); if ( isVisible() && sanitizedStr == inputWord ) {