I have created a RoutedUICommand
for pasting the plain text from the clipboard. If I change the Key.V
assignment to Key.G
or something else it works. I assume that the command is being intercepted by the current control (a RichTextBox
). I tried to verify this with Snoop. However, I don't appear to be smart enough to find the culprit. Has anyone else seen this behavior? Is there a workaround?
Is there a way to find out what KeyGestures may already be assigned within a window or control?
// I REALLY want to use CTRL + SHIFT + V here but it seems to be ignored.
public static readonly RoutedUICommand PasteUnformattedText = new RoutedUICommand
(
"Paste Text Only",
"PasteUnformattedText",
typeof(CustomCommands),
new InputGestureCollection()
{
new KeyGesture(Key.V, ModifierKeys.Control | ModifierKeys.Shift )
}
);
}