From 335b338b693ad7ab0640dbccdc4c7ddbd5c16398 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Wed, 5 Jun 2013 10:10:27 +0530 Subject: [PATCH] Update jquery.ime from upstream Fixes issue: Native Keyboard selection not reflected on the input fields Version: 0.1.0+20130605 Bug: 49152 Change-Id: I1f16b3d8084bec8a4b7ab0b28bbe71777b44c077 --- lib/jquery.ime/jquery.ime.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js index 437f9164..2b764d14 100644 --- a/lib/jquery.ime/jquery.ime.js +++ b/lib/jquery.ime/jquery.ime.js @@ -1,4 +1,4 @@ -/*! jquery.ime - v0.1.0+20130531 +/*! jquery.ime - v0.1.0+20130605 * https://github.com/wikimedia/jquery.ime * Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */ ( function ( $ ) { @@ -772,11 +772,11 @@ if ( ime.getLanguage() === languageCode ) { // Nothing to do. It is same as the current language, // but check whether the input method changed. - if ( ime.inputmethod && ime.inputmethod.id === imePref - || imePref === 'system' - ) { - return false; + if ( ime.inputmethod && ime.inputmethod.id !== imePref ) { + this.selectIM( $.ime.preferences.getIM( languageCode ) ); } + + return false; } this.$menu.find( 'li.ime-lang' ).show();