fixed IME: IME context is properly restored when returning from a toolbar or button.