In a WPF DataGrid the F2 key is used to edit current cell. The requirements in my software project says that F2 should do something else. I have added a keybinding, but it only works when keyboardfocus is not in the DataGrid.
Can I disable or remove the DataGrid's keybinding to the F2 key?
I did not find a way to override the use of the F2 key in the DataGrid. I could disable the functionality in the DataGrid, but I couldn't at the same time hook it up to anything else.
It was easier to get the stakeholders to change the requirements. After all, most Windows users are familiar with F2 to enable editing, as it is in both Explorer and Excel.