Bug 1130028 - Send inputmethod-contextchange to systemapp to hide keyboard when frame crash. r=yxl

This commit is contained in:
George Duan 2015-03-17 20:24:00 -04:00
parent 9cc060565d
commit 9057a8ed29

View File

@ -115,6 +115,11 @@ this.Keyboard = {
// The application has been closed unexpectingly. Let's tell the
// keyboard app that the focus has been lost.
this.sendToKeyboard('Keyboard:FocusChange', { 'type': 'blur' });
// Notify system app to hide keyboard.
SystemAppProxy.dispatchEvent({
type: 'inputmethod-contextchange',
inputType: 'blur'
});
}
} else {
// Ignore notifications that aren't from a BrowserOrApp