From ac1d5c37a606fcf12c71f356a4e550487af0217f Mon Sep 17 00:00:00 2001 From: BruceChen Date: Fri, 27 Mar 2026 00:29:25 +0800 Subject: [PATCH] Refactor tab cycling logic in TUI command input handling - Simplified the condition for disabling tab cycling by checking only for the Tab key. - Improved clarity in the command key down event handling for better user experience. --- MinecraftClient/Tui/MainTuiView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinecraftClient/Tui/MainTuiView.cs b/MinecraftClient/Tui/MainTuiView.cs index bfd79e04..397f1475 100644 --- a/MinecraftClient/Tui/MainTuiView.cs +++ b/MinecraftClient/Tui/MainTuiView.cs @@ -272,7 +272,7 @@ namespace MinecraftClient.Tui private void OnCommandKeyDown(object? sender, KeyEventArgs e) { - if (_tabCycling && e.Key is not (Key.Tab or Key.Up or Key.Down or Key.Escape)) + if (_tabCycling && e.Key is not Key.Tab) _tabCycling = false; bool ctrl = (e.KeyModifiers & KeyModifiers.Control) != 0;