|
@@ -196,7 +196,7 @@ namespace Terminal.Gui {
|
|
return true;
|
|
return true;
|
|
} else if (me.Flags == MouseFlags.Button1Pressed) {
|
|
} else if (me.Flags == MouseFlags.Button1Pressed) {
|
|
if (!search.HasFocus) {
|
|
if (!search.HasFocus) {
|
|
- SetFocus (search);
|
|
|
|
|
|
+ search.SetFocus ();
|
|
}
|
|
}
|
|
|
|
|
|
return true;
|
|
return true;
|
|
@@ -210,7 +210,7 @@ namespace Terminal.Gui {
|
|
listview.SelectedItem = SelectedItem > -1 ? SelectedItem : 0;
|
|
listview.SelectedItem = SelectedItem > -1 ? SelectedItem : 0;
|
|
if (SelectedItem > -1) {
|
|
if (SelectedItem > -1) {
|
|
listview.TabStop = true;
|
|
listview.TabStop = true;
|
|
- this.SetFocus (listview);
|
|
|
|
|
|
+ listview.SetFocus ();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -218,7 +218,7 @@ namespace Terminal.Gui {
|
|
public override bool OnEnter (View view)
|
|
public override bool OnEnter (View view)
|
|
{
|
|
{
|
|
if (!search.HasFocus && !listview.HasFocus) {
|
|
if (!search.HasFocus && !listview.HasFocus) {
|
|
- SetFocus (search);
|
|
|
|
|
|
+ search.SetFocus ();
|
|
}
|
|
}
|
|
|
|
|
|
search.CursorPosition = search.Text.RuneCount;
|
|
search.CursorPosition = search.Text.RuneCount;
|
|
@@ -301,7 +301,7 @@ namespace Terminal.Gui {
|
|
if (e.Key == Key.CursorDown && search.HasFocus) { // jump to list
|
|
if (e.Key == Key.CursorDown && search.HasFocus) { // jump to list
|
|
if (searchset.Count > 0) {
|
|
if (searchset.Count > 0) {
|
|
listview.TabStop = true;
|
|
listview.TabStop = true;
|
|
- this.SetFocus (listview);
|
|
|
|
|
|
+ listview.SetFocus ();
|
|
SetValue (searchset [listview.SelectedItem]);
|
|
SetValue (searchset [listview.SelectedItem]);
|
|
return true;
|
|
return true;
|
|
} else {
|
|
} else {
|
|
@@ -317,7 +317,7 @@ namespace Terminal.Gui {
|
|
if (e.Key == Key.CursorUp && listview.HasFocus && listview.SelectedItem == 0 && searchset.Count > 0) // jump back to search
|
|
if (e.Key == Key.CursorUp && listview.HasFocus && listview.SelectedItem == 0 && searchset.Count > 0) // jump back to search
|
|
{
|
|
{
|
|
search.CursorPosition = search.Text.RuneCount;
|
|
search.CursorPosition = search.Text.RuneCount;
|
|
- this.SetFocus (search);
|
|
|
|
|
|
+ search.SetFocus ();
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -350,7 +350,7 @@ namespace Terminal.Gui {
|
|
}
|
|
}
|
|
|
|
|
|
if (e.Key == Key.Esc) {
|
|
if (e.Key == Key.Esc) {
|
|
- this.SetFocus (search);
|
|
|
|
|
|
+ search.SetFocus ();
|
|
search.Text = text = "";
|
|
search.Text = text = "";
|
|
OnSelectedChanged ();
|
|
OnSelectedChanged ();
|
|
return true;
|
|
return true;
|
|
@@ -431,7 +431,7 @@ namespace Terminal.Gui {
|
|
listview.Height = CalculatetHeight ();
|
|
listview.Height = CalculatetHeight ();
|
|
|
|
|
|
if (Subviews.Count > 0) {
|
|
if (Subviews.Count > 0) {
|
|
- SetFocus (search);
|
|
|
|
|
|
+ search.SetFocus ();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|