Skip to content

Commit 3aac04b

Browse files
committed
fix(config): change auto copy toggle shortcut from ALT+A to CTRL+A
1 parent c379344 commit 3aac04b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

FlyleafLib/Engine/Config.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ private void UpdateDefault()
168168
{
169169
Player.KeyBindings.Keys.Add(new KeyBinding { Ctrl = true, Key = System.Windows.Input.Key.T, IsKeyUp = true, Action = KeyBindingAction.Custom, ActionName = "ToggleAlwaysOnTop" });
170170
}
171+
172+
// Set Ctrl+A for ToggleSubsAutoTextCopy (previous Alt+A)
173+
int ctrlABindingIdx = Player.KeyBindings.Keys
174+
.FindIndex(k => k.Key == System.Windows.Input.Key.A &&
175+
k.Ctrl && !k.Alt && !k.Shift);
176+
if (ctrlABindingIdx == -1)
177+
{
178+
Player.KeyBindings.Keys.Add(new KeyBinding { Ctrl = true, Key = System.Windows.Input.Key.A, IsKeyUp = true, Action = KeyBindingAction.Custom, ActionName = "ToggleSubsAutoTextCopy" });
179+
}
171180
}
172181
}
173182

LLPlayer/Services/AppActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static List<KeyBinding> DefaultCustomActionsMap()
108108
new() { ActionName = nameof(CustomKeyBindingAction.SubsDistanceIncrease), Key = Key.Up, Ctrl = true, Shift = true },
109109
new() { ActionName = nameof(CustomKeyBindingAction.SubsDistanceDecrease), Key = Key.Down, Ctrl = true, Shift = true },
110110
new() { ActionName = nameof(CustomKeyBindingAction.SubsPrimaryTextCopy), Key = Key.C, Ctrl = true, IsKeyUp = true },
111-
new() { ActionName = nameof(CustomKeyBindingAction.ToggleSubsAutoTextCopy), Key = Key.A, Alt = true, IsKeyUp = true },
111+
new() { ActionName = nameof(CustomKeyBindingAction.ToggleSubsAutoTextCopy), Key = Key.A, Ctrl = true, IsKeyUp = true },
112112
new() { ActionName = nameof(CustomKeyBindingAction.ActivateSubsSearch), Key = Key.F, Ctrl = true, IsKeyUp = true },
113113
new() { ActionName = nameof(CustomKeyBindingAction.ToggleSidebar), Key = Key.B, Ctrl = true, IsKeyUp = true },
114114
new() { ActionName = nameof(CustomKeyBindingAction.ToggleDebugOverlay), Key = Key.D, Ctrl = true, Shift = true, IsKeyUp = true },

0 commit comments

Comments
 (0)