Override the enter key, but keep default behavior for other keys in a wpf datagrid
问题 It really bothers me that the pressing the enter key in a Datagrid moves the selection down one item, I'd like to be able to decide what it does in a normal keydown event. So what I did was create a new class that inherits DataGrid and override the OnKeyDown event and use that as my datagrid. This creates a whole new set of problems, since I apparently have to rewrite all the other keypresses (arrow key navigation, shift+arrow key selection, pgup/pgdn, etc..). I've been trying to hack it, but