Sfoglia il codice sorgente

Fixes #503 Tab stop working.

BDisp 5 anni fa
parent
commit
068b19d0b4
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      Terminal.Gui/Core/Toplevel.cs

+ 7 - 0
Terminal.Gui/Core/Toplevel.cs

@@ -5,7 +5,9 @@
 //   Miguel de Icaza ([email protected])
 //
 using System;
+using System.Collections.Generic;
 using System.ComponentModel;
+using System.Linq;
 
 namespace Terminal.Gui {
 	/// <summary>
@@ -150,6 +152,8 @@ namespace Terminal.Gui {
 				if (old != Focused) {
 					old?.SetNeedsDisplay ();
 					Focused?.SetNeedsDisplay ();
+				} else {
+					FocusNearestView (GetSuperViewSubviews (true), true);
 				}
 				return true;
 			case Key.CursorLeft:
@@ -161,12 +165,15 @@ namespace Terminal.Gui {
 				if (old != Focused) {
 					old?.SetNeedsDisplay ();
 					Focused?.SetNeedsDisplay ();
+				} else {
+					FocusNearestView (GetSuperViewSubviews (false), false);
 				}
 				return true;
 
 			case Key.ControlL:
 				Application.Refresh ();
 				return true;
+
 			}
 			return false;
 		}