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.
In
TextCellEditor#createEditorControl()
aKeyListener
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 theKeyListener
to use, instead of adding it anonymously.