Fix text selection for clear_field step on Mac

This commit is contained in:
Dmytro Maslenko 2023-02-04 23:03:53 -08:00 committed by Jonathan White
parent fa53c79ecf
commit 95aaa96fb8
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -267,8 +267,8 @@ AutoTypeAction::Result AutoTypeExecutorMac::execType(const AutoTypeKey* action)
AutoTypeAction::Result AutoTypeExecutorMac::execClearField(const AutoTypeClearField* action)
{
Q_UNUSED(action);
execType(new AutoTypeKey(Qt::Key_Up, Qt::ControlModifier));
execType(new AutoTypeKey(Qt::Key_Down, Qt::ControlModifier | Qt::ShiftModifier));
execType(new AutoTypeKey(Qt::Key_Left, Qt::ControlModifier));
execType(new AutoTypeKey(Qt::Key_Right, Qt::ControlModifier | Qt::ShiftModifier));
execType(new AutoTypeKey(Qt::Key_Backspace));
return AutoTypeAction::Result::Ok();
}