richMode/view: sync on keypress/composition events
richMode/view: sync on keypress/composition events

Syncing after keydown meant rich text could not be applied to IME
composition, as the sync would interrupt composition.

lucthev/compose,lucthev/compose