Update jquery.ime from upstream

Version:  v0.1.0+20130625

* Add sa-iast input method
* Fix bug https://github.com/wikimedia/jquery.ime/issues/188

Bug: 49515
Change-Id: I8ebd5bc4857285eb29d0ec6741cc6953ac187722
This commit is contained in:
Santhosh Thottingal
2013-06-25 17:17:46 +05:30
parent 55d93c7305
commit 96f6721772
2 changed files with 76 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/*! jquery.ime - v0.1.0+20130624
/*! jquery.ime - v0.1.0+20130625
* https://github.com/wikimedia/jquery.ime
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
( function ( $ ) {
@@ -666,7 +666,9 @@
* @param {jQuery.Event} e
*/
keydown: function ( e ) {
var ime = $( e.target ).data( 'ime' );
var ime = $( e.target ).data( 'ime' ),
firstInputmethod,
languageCode;
this.focus(); // shows the trigger in case it is hidden
@@ -677,7 +679,14 @@
if ( this.inputmethod !== null ) {
this.selectIM( this.inputmethod.id );
} else {
this.selectLanguage( this.decideLanguage() );
languageCode = this.decideLanguage();
this.selectLanguage( languageCode );
if ( !ime.isActive() && $.ime.languages[languageCode] ) {
// Even after pressing toggle shortcut again, it is still disabled
// Provide the default input method in this case.
firstInputmethod = $.ime.languages[languageCode].inputmethods[0];
this.selectIM( firstInputmethod );
}
}
}
@@ -1610,6 +1619,10 @@
name: 'yawerty',
source: 'rules/ru/ru-yawerty.js'
},
'sa-iast': {
name: 'Romanized',
source: 'rules/sa/sa-iast.js'
},
'sa-inscript': {
name: 'इनस्क्रिप्ट',
source: 'rules/sa/sa-inscript.js'
@@ -1903,7 +1916,7 @@
},
'sa': {
autonym: 'संस्कृत',
inputmethods: [ 'sa-transliteration', 'sa-inscript2', 'sa-inscript' ]
inputmethods: [ 'sa-transliteration', 'sa-inscript2', 'sa-inscript', 'sa-iast' ]
},
'sat': {
autonym: 'संताली',