From 0dd7415445e6408ce2745a081e9f635c7de3ca8b Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Thu, 5 Feb 2026 15:57:51 +0800 Subject: [PATCH] Nano Tab --- editor/Nano.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/Nano.cs b/editor/Nano.cs index 753f96c..4fe9112 100644 --- a/editor/Nano.cs +++ b/editor/Nano.cs @@ -147,6 +147,11 @@ namespace CMLeonOS modified = true; } + private void InsertTab() + { + Insert(" "); + } + // Backspace at the cursor. private void Backspace() { @@ -697,6 +702,9 @@ namespace CMLeonOS } switch (key.Key) { + case ConsoleKey.Tab: + InsertTab(); + break; case ConsoleKey.Backspace: Backspace(); break;