Merge "Set input method mode for CascadingMenuPopup." into nyc-dev