fix: minor code changes related to ctrl+c

This commit is contained in:
Xiao YiFang 2022-09-10 22:12:47 +08:00
parent cc740f1ccc
commit 0f1e107d5f

View file

@ -933,17 +933,19 @@ void MainWindow::clipboardChange( )
if( scanPopup && cfg.preferences.trackClipboardChanges )
{
scanPopup->translateWordFromClipboard();
return;
}
//Ctrl+C+C
if(cfg.preferences.enableClipboardHotkey)
{
if(firstCopyKeyTriggered){
firstCopyKeyTriggered=false;
if(scanPopup)
{
scanPopup->translateWordFromClipboard();
}
firstCopyKeyTriggered=false;
}else{
firstCopyKeyTriggered = true;
QTimer::singleShot(500,this,[this](){