Bug 963377 - [B2G][Keyboard] Keyboard blocks "cancel" / "ok" options

 - Still reset keyboard state when the keyboard frame is hidden, so that
   the keyboard won't be triggered by the keyboard app after it has
   been dismissed.