mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2024-12-23 01:59:40 +08:00
Implement control modifier to Home/End jump
This commit is contained in:
parent
6e5610129a
commit
0a05848bef
@ -239,10 +239,13 @@ namespace UnityExplorer.CSConsole
|
|||||||
if (SRENotSupported)
|
if (SRENotSupported)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (InputManager.GetKeyDown(KeyCode.Home))
|
if (!InputManager.GetKey(KeyCode.LeftControl) && !InputManager.GetKey(KeyCode.RightControl))
|
||||||
JumpToStartOrEndOfLine(true);
|
{
|
||||||
else if (InputManager.GetKeyDown(KeyCode.End))
|
if (InputManager.GetKeyDown(KeyCode.Home))
|
||||||
JumpToStartOrEndOfLine(false);
|
JumpToStartOrEndOfLine(true);
|
||||||
|
else if (InputManager.GetKeyDown(KeyCode.End))
|
||||||
|
JumpToStartOrEndOfLine(false);
|
||||||
|
}
|
||||||
|
|
||||||
UpdateCaret(out bool caretMoved);
|
UpdateCaret(out bool caretMoved);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user