mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
修复密码填写框无法退格的bug
This commit is contained in:
@@ -581,6 +581,14 @@ namespace CMLeonOS
|
|||||||
if (password.Length > 0)
|
if (password.Length > 0)
|
||||||
{
|
{
|
||||||
password = password.Substring(0, password.Length - 1);
|
password = password.Substring(0, password.Length - 1);
|
||||||
|
int cursorLeft = Console.CursorLeft;
|
||||||
|
int cursorTop = Console.CursorTop;
|
||||||
|
if (cursorLeft > 0)
|
||||||
|
{
|
||||||
|
Console.SetCursorPosition(cursorLeft - 1, cursorTop);
|
||||||
|
Console.Write(" ");
|
||||||
|
Console.SetCursorPosition(cursorLeft - 1, cursorTop);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user