зеркало из https://github.com/mozilla/gecko-dev.git
Bug 916740 - Expose Keyboard.jsm to shell.js. r=kchen
This commit is contained in:
Родитель
673a4107bd
Коммит
4bcecbcb7c
|
@ -1076,10 +1076,8 @@ let RemoteDebugger = {
|
|||
}
|
||||
|
||||
let KeyboardHelper = {
|
||||
handleEvent: function keyboard_handleEvent(aMessage) {
|
||||
let data = aMessage.data;
|
||||
|
||||
Keyboard.setLayouts(data.layouts);
|
||||
handleEvent: function keyboard_handleEvent(detail) {
|
||||
Keyboard.setLayouts(detail.layouts);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
XPCOMUtils.defineLazyServiceGetter(this, "ppmm",
|
||||
"@mozilla.org/parentprocessmessagemanager;1", "nsIMessageBroadcaster");
|
||||
|
||||
let Keyboard = {
|
||||
this.Keyboard = {
|
||||
_messageManager: null,
|
||||
_messageNames: [
|
||||
'SetValue', 'RemoveFocus', 'SetSelectedOption', 'SetSelectedOptions',
|
||||
|
@ -267,4 +267,4 @@ let Keyboard = {
|
|||
}
|
||||
};
|
||||
|
||||
Keyboard.init();
|
||||
this.Keyboard.init();
|
||||
|
|
Загрузка…
Ссылка в новой задаче