mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
manual update of branch
This commit is contained in:
@@ -3082,10 +3082,15 @@ namespace Terminal.Gui {
|
||||
/// <returns><see langword="true"/> if it's overridden, <see langword="false"/> otherwise.</returns>
|
||||
public bool IsOverridden (View view, string method)
|
||||
{
|
||||
Type t = view.GetType ();
|
||||
MethodInfo m = t.GetMethod (method);
|
||||
|
||||
return (m.DeclaringType == t || m.ReflectedType == t) && m.GetBaseDefinition ().DeclaringType == typeof (Responder);
|
||||
MethodInfo m = view.GetType ().GetMethod (method,
|
||||
BindingFlags.Instance
|
||||
| BindingFlags.Public
|
||||
| BindingFlags.NonPublic
|
||||
| BindingFlags.DeclaredOnly);
|
||||
if (m == null) {
|
||||
return false;
|
||||
}
|
||||
return m.GetBaseDefinition ().DeclaringType != m.DeclaringType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -484,7 +484,7 @@ namespace Terminal.Gui {
|
||||
search.SetFocus ();
|
||||
}
|
||||
|
||||
search.CursorPosition = search.Text.RuneCount;
|
||||
search.CursorPosition = search.Text.ConsoleWidth;
|
||||
|
||||
return base.OnEnter (view);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user