Merge "Close the current input method when attached view doesn't have a handler" into jb-mr1-dev