private void NetworkTab_PreviewKeyDown(object sender, KeyEventArgs e) { if (!IP_TextBox.IsFocused && !Port_TextBox.IsFocused) { NetworkSearchTextBox.Focus(); } e.Handled = false; }
private void NetworkTab_PreviewKeyDown(object sender, KeyEventArgs e) { e.Handled = false; if (_ignoredKeys.Contains(e.Key)) { return; } if (!IP_TextBox.IsFocused && !Port_TextBox.IsFocused) { NetworkSearchTextBox.Focus(); } }