mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
* For popup, trim both whitespace and punctuation for the input word.
This commit is contained in:
parent
94570b5430
commit
118034beb8
|
@ -136,7 +136,7 @@ void ScanPopup::handleInputWord( QString const & str )
|
|||
!checkModifiersPressed( cfg.preferences.scanPopupModifiers ) )
|
||||
return;
|
||||
|
||||
inputWord = str.trimmed();
|
||||
inputWord = QString::fromStdWString( Folding::trimWhitespaceOrPunct( str.toStdWString() ) );
|
||||
|
||||
if ( !inputWord.size() )
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue