Tofe/work

Some improvements for showing the keyboard correctly with preedit enabled by default.