mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Added TextView.TextChanged event (#264)
This commit is contained in:
committed by
Miguel de Icaza
parent
ec21bcec8e
commit
6944b755f5
@@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// TextView.cs: multi-line text editing
|
||||
//
|
||||
// Authors:
|
||||
@@ -266,6 +266,8 @@ namespace Terminal.Gui {
|
||||
bool selecting;
|
||||
//bool used;
|
||||
|
||||
public event EventHandler TextChanged;
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Changed event, raised when the text has clicked.
|
||||
@@ -312,6 +314,7 @@ namespace Terminal.Gui {
|
||||
set {
|
||||
ResetPosition ();
|
||||
model.LoadString (value);
|
||||
TextChanged?.Invoke(this, new EventArgs());
|
||||
SetNeedsDisplay ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user