Implement control modifier to Home/End jump

This commit is contained in:
Sinai 2022-04-28 04:10:36 +10:00
parent 6e5610129a
commit 0a05848bef

View File

@ -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);