Fix bug on characters insertion

Issue : none

Since the commit "Add text font effects" a bug was introduced.
When inserting a new characters in text edit zone, the cursor moved to the
end of line.
This patch fix this behavior, now the cursor stay at it place.

Signed-off-by: juiice <decaen.julien@gmail.com>