eclipse-nattable / nattable

High performance SWT data grid
https://eclipse.dev/nattable/
Eclipse Public License 2.0
15 stars 6 forks source link

[TextCellEditor] Add option to replace the KeyListener #73

Closed fipro78 closed 4 months ago

fipro78 commented 6 months ago

In TextCellEditor#createEditorControl() a KeyListener is added to handle keystrokes on edit, e.g. commit on enter. If a user wants to adjust the behavior on keystrokes, e.g. perform additional tasks on commit depending on how an editor is closed (ENTER vs. ESC) or the pressed modifier keys, also the control creation code needs to be copied.

It would be nice if only the KeyListener could be exchanged for such scenarios. This means to add some API to get the KeyListener to use, instead of adding it anonymously.

fipro78 commented 4 months ago

Verified by user