mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
CmdPal: prevent ctrl+i from inserting a tab (#41746)
Eat the Ctrl+I, so that it doesn't insert a tab. Why does it insert a tab? Who knows. closes #41681
This commit is contained in:
@@ -131,6 +131,11 @@ public sealed partial class SearchBar : UserControl,
|
|||||||
WeakReferenceMessenger.Default.Send<OpenContextMenuMessage>(new OpenContextMenuMessage(null, null, null, ContextMenuFilterLocation.Bottom));
|
WeakReferenceMessenger.Default.Send<OpenContextMenuMessage>(new OpenContextMenuMessage(null, null, null, ContextMenuFilterLocation.Bottom));
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
|
else if (ctrlPressed && e.Key == VirtualKey.I)
|
||||||
|
{
|
||||||
|
// Today you learned that Ctrl+I in a TextBox will insert a tab
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
else if (e.Key == VirtualKey.Escape)
|
else if (e.Key == VirtualKey.Escape)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(FilterBox.Text))
|
if (string.IsNullOrEmpty(FilterBox.Text))
|
||||||
|
|||||||
Reference in New Issue
Block a user