Skip to content

Commit 67408cf

Browse files
author
Steven Sinakhot
committed
issue riperiperi#83 - adds shift+end and shift+home functionality
1 parent 889cb4b commit 67408cf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

TSOClient/tso.common/Rendering/Framework/IO/InputManager.cs

+14
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,20 @@ public KeyboardInputResult ApplyKeyboardInput(StringBuilder m_SBuilder, UpdateSt
198198
{
199199
result.TabPressed = true;
200200
}
201+
else if (result.ShiftDown)
202+
{
203+
switch (key)
204+
{
205+
case Keys.Home:
206+
cursorEndIndex = 0;
207+
result.SelectionChanged = true;
208+
break;
209+
case Keys.End:
210+
cursorEndIndex = m_SBuilder.Length;
211+
result.SelectionChanged = true;
212+
break;
213+
}
214+
}
201215
else if (result.CtrlDown)
202216
{
203217
switch (key)

0 commit comments

Comments
 (0)