I want to override some default selection behaviour: pressing the RETURN key while a single row is selected shifts the selection one row down. Instead of this I want to open an editor, showing all data concerning the selected row entry. So I started by unregistering the keybindings for the RETURN key.

First, in order to use my own keybinding implementation, I disabled the auto configuration of the nattable instance.

Second I created my own MyNatTableSelectionBindings class, which is derived from DefaultSelectionBindings and which overrides the methods configureMoveDownBindings() and configureMoveUpBindings(). Therin I unregistered the keybindings for the RETURN key:

I'm currently not able to debug into this. But this could have two reasons:

1. It is some time related issue. That means, when your configuration code for unregistering runs, the binding you want to unregister is not registered yet.
2. You are registering the key binding twice (one by the SelectionLayer configuration, one with your configuration on the NatTable), but you only remove it once.

Probably it is the second one. Nevertheless you should set your configuration to the SelectionLayer instead of the NatTable. Then it should work.

Glad I could help. But still I suggest to only use a custom configuration for the SelectionLayer instead setting an additional one for the same purpose to the NatTable. Every action will otherwise be called twice which could have negative impact on your implementation.