Merge change 7153 into donut

* changes:
  Restore PopupWindow's original behavior and add an API to control the soft input mode.