mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
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.
This commit is contained in:
parent
fe7ab9f373
commit
ac1d5c37a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue