keep and restore fcitx state when leaving/re-entering insert mode