Possibly this method `setEditing()` should be rather moved to `EventManager`? At least I do not see anything specific to IME here, and all it does it change attributes of the event trap, directly and indirectly.