Bug 924893 - Add info for the value_selector to contextchange chrome event. r=yxl

This commit is contained in:
Jan Jongboom 2013-10-17 11:08:55 -04:00
parent b3f2464402
commit e5cc329d54

View File

@ -189,9 +189,15 @@ this.Keyboard = {
let browser = Services.wm.getMostRecentWindow("navigator:browser"); let browser = Services.wm.getMostRecentWindow("navigator:browser");
// Chrome event, used also to render value selectors; that's why we need
// the info about choices / min / max here as well...
browser.shell.sendChromeEvent({ browser.shell.sendChromeEvent({
type: 'inputmethod-contextchange', type: 'inputmethod-contextchange',
inputType: msg.data.type inputType: msg.data.type,
value: msg.data.value,
choices: JSON.stringify(msg.data.choices),
min: msg.data.min,
max: msg.data.max
}); });
}, },