From 9057a8ed298cac25a877a6cae8f3cbf33b60fd48 Mon Sep 17 00:00:00 2001 From: George Duan Date: Tue, 17 Mar 2015 20:24:00 -0400 Subject: [PATCH] Bug 1130028 - Send inputmethod-contextchange to systemapp to hide keyboard when frame crash. r=yxl --- dom/inputmethod/Keyboard.jsm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom/inputmethod/Keyboard.jsm b/dom/inputmethod/Keyboard.jsm index c4a39216da5e..32cbdec3229a 100644 --- a/dom/inputmethod/Keyboard.jsm +++ b/dom/inputmethod/Keyboard.jsm @@ -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