From bba0c09b421e01fd69c28dbb237d985a98302418 Mon Sep 17 00:00:00 2001 From: Dmytro Maslenko Date: Sat, 4 Feb 2023 23:03:53 -0800 Subject: [PATCH] Fix text selection for clear_field step on Mac --- src/autotype/mac/AutoTypeMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autotype/mac/AutoTypeMac.cpp b/src/autotype/mac/AutoTypeMac.cpp index f3f5c6594..05a5d41de 100644 --- a/src/autotype/mac/AutoTypeMac.cpp +++ b/src/autotype/mac/AutoTypeMac.cpp @@ -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(); }