I want to disable all default shortcuts in WPF TextBox. Shortcuts like Ctrl + A, Ctrl + V, Ctrl + C etc. Can this be done?. It looks to me that these shortcuts are executed before KeyDown event
I want to disable all default shortcuts in WPF TextBox. Shortcuts like Ctrl +
Share
You can intercept the keystrokes in the
PreviewKeyDownevent. Set thee.Handledmember totrueand that will prevent the actually processing of the keys.