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 f703736685
commit bba0c09b42

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();
}