add support for Ctrl+Backspace in all textboxes
In many places it's possible to use Ctrl+Backspace to remove the word before the caret (e.g. all Windows standard dialogs and in File -> New Project -> Name).
Please support this feature everywhere!
Most important to me are Navigate To, the Comment textbox in the Pending Changes tool window, and the new search box.
3 comments
-
Bálint Molnár commented
I might be a little late, but if anyone looks for a temporary solution, here is mine:
private void tosend_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar.GetHashCode().ToString() == "8323199" && Control.ModifierKeys.ToString() == "Control")
{
//if not last word
if (tosend.Text.Split(' ').Count() > 1)
{
//remove last word form list and put it back together (gotta love lambda)
tosend.Text = tosend.Text.Split(' ').Take(tosend.Text.Split(' ').Count() - 1).Aggregate((a, b) => a + " " + b);
//set selection at the end
tosend.SelectionStart = tosend.Text.Length;
}
else if (tosend.Text.Split(' ').Count() == 1)
{
tosend.Text = "";
}e.Handled = true;
return;
}
} -
Felix Dacumos
commented
Yes, please use the same APIs for text boxes to support Ctrl+backspace. One of my biggest pet peeves is when Microsoft doesn't eat its own dogfood and use consistency!
-
Stephen Schaff
commented
This is so frustrating in the Pending Changes Box. I must type in "" (the ctrl+backspace) on every third check-in. Please add it!