return {
EXTERNAL_API: [
'enableContinueButton',
+ 'setInputMethod',
'setTimezone',
'showError'
],
},
/**
+ * Sets the current input method.
+ * @param {string} inputMethodId The ID of the input method to select.
+ */
+ setInputMethod: function(inputMethodId) {
+ option = $('keyboard-select').querySelector(
+ 'option[value="' + inputMethodId + '"]');
+ if (option)
+ option.selected = true;
+ },
+
+ /**
* Sets the current timezone.
* @param {string} timezoneId The timezone ID to select.
*/