Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
KeyBinding's coverage scope
posted

Hi,

I use the delete shortcut key to perform a delete operation based on the selected record in a datagrid. The shortcut is defined as:

  <igRibbon:XamRibbonWindow.InputBindings>
    <KeyBinding
      Key="Delete"
      Command="{x:Static infra:Commands.CommandProxy.DeleteCommand}"/>
...

When I edit a cell (a string) in the datagrid, I want the default delete behaviour, i.e. deleting the selected characters within the cell

However, the above xaml captures the delete key without passing to the cell

How may I control the delete key's coverage scope, i.e. invoke the delete command if the row is selected, and perform deleting the characters with a cell's value is highlighted

Thanks

Thomas