- fix: Double-clicking on touchpad can't select current word.

This commit is contained in:
Roy Qu 2023-05-11 21:59:57 +08:00
parent 6736524380
commit 2114206e76
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
Red Panda C++ Version 2.22 Red Panda C++ Version 2.22
- fix: Crash at startup when current problem in the problem set is connected with source file. - fix: Crash at startup when current problem in the problem set is connected with source file.
- fix: Double-clicking on touchpad can't select current word.
Red Panda C++ Version 2.21 Red Panda C++ Version 2.21

View File

@ -1748,6 +1748,8 @@ void QSynEdit::doMouseScroll(bool isDragging)
mDropped=false; mDropped=false;
return; return;
} }
if (mStateFlags.testFlag(StateFlag::sfDblClicked))
return;
if (!hasFocus()) if (!hasFocus())
return; return;
Qt::MouseButtons buttons = qApp->mouseButtons(); Qt::MouseButtons buttons = qApp->mouseButtons();