A better approach would be to commit the IM buffers when the component looses focus. However I would expect Enter/CR press to do auto-commit the buffer.
A better approach would be to commit the IM buffers when the component looses focus. However I would expect Enter/CR press to do auto-commit the buffer.