From 0a05848befd2650affa0033d3e92514a2f6ba7f1 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Thu, 28 Apr 2022 04:10:36 +1000 Subject: [PATCH] Implement control modifier to Home/End jump --- src/CSConsole/ConsoleController.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/CSConsole/ConsoleController.cs b/src/CSConsole/ConsoleController.cs index b0b27f9..af11452 100644 --- a/src/CSConsole/ConsoleController.cs +++ b/src/CSConsole/ConsoleController.cs @@ -239,10 +239,13 @@ namespace UnityExplorer.CSConsole if (SRENotSupported) return; - if (InputManager.GetKeyDown(KeyCode.Home)) - JumpToStartOrEndOfLine(true); - else if (InputManager.GetKeyDown(KeyCode.End)) - JumpToStartOrEndOfLine(false); + if (!InputManager.GetKey(KeyCode.LeftControl) && !InputManager.GetKey(KeyCode.RightControl)) + { + if (InputManager.GetKeyDown(KeyCode.Home)) + JumpToStartOrEndOfLine(true); + else if (InputManager.GetKeyDown(KeyCode.End)) + JumpToStartOrEndOfLine(false); + } UpdateCaret(out bool caretMoved);