[DF-4941] Fix transparent keyboard on some devices. Also send close keyboard event on window lost focus when keyboard closes automatically.
Merge remote-tracking branch 'origin/to_master' into DF-4941_transparent_keyboard_fix
Merge remote-tracking branch 'origin/DF-4941_transparent_keyboard_fix' into to_master