Skip to content

Commit 690c4f5

Browse files
committed
[edit] allow Unicode characters in key search query
1 parent f46cece commit 690c4f5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/EtcdTerminal.App/Screens/KeyBrowseScreen.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,9 @@ private async Task MainLoopAsync()
168168
case ConsoleKey.Escape:
169169
return;
170170
default:
171-
var c = keyInfo.KeyChar;
172-
173-
if (c >= ' ' && c <= '~')
171+
if (!char.IsControl(keyInfo.KeyChar))
174172
{
175-
_searchQuery += c;
173+
_searchQuery += keyInfo.KeyChar;
176174
ApplyFilter();
177175
}
178176
break;

0 commit comments

Comments
 (0)