mirror of https://github.com/quasar/Quasar.git
RemoteShell caret positioning fix
-Will always scroll to the very bottom of the rtb when text is changed
This commit is contained in:
parent
524a682c66
commit
04a0d36183
|
@ -3,6 +3,7 @@
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using xServer.Core.Helper;
|
using xServer.Core.Helper;
|
||||||
using xServer.Core.Networking;
|
using xServer.Core.Networking;
|
||||||
|
using xServer.Core.Utilities;
|
||||||
|
|
||||||
namespace xServer.Forms
|
namespace xServer.Forms
|
||||||
{
|
{
|
||||||
|
@ -43,8 +44,7 @@ private void FrmRemoteShell_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
|
||||||
private void txtConsoleOutput_TextChanged(object sender, EventArgs e)
|
private void txtConsoleOutput_TextChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
txtConsoleOutput.SelectionStart = txtConsoleOutput.TextLength;
|
NativeMethods.SendMessage(txtConsoleOutput.Handle, 277, 7, 0);
|
||||||
txtConsoleOutput.ScrollToCaret();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void txtConsoleInput_KeyDown(object sender, KeyEventArgs e)
|
private void txtConsoleInput_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue