Inlined the old setDfltKeyboard() method that was only ever used in one place and was not part of the API.

This commit is contained in:
Joshua Horton 2017-06-14 08:13:38 +07:00
parent 98d8b78708
commit 89dc9b335f
2 changed files with 5 additions and 15 deletions

View file

@ -3067,14 +3067,6 @@
}
}
/**
* Set the default keyboard
**/
keymanweb.setDfltKeyboard=function()
{
keymanweb.setActiveKeyboard(''); // This line is used in all the UI elements to set the default keyboard, so we should follow suit here.
}
/**
* Function isCJK
* Scope Public

View file

@ -96,19 +96,17 @@
*/
keymanweb.keyboardUnavailable = function(Ln)
{
return window.setTimeout(function()
{
return window.setTimeout(function() {
util.wait(false);
var Ps=keymanweb._KeyboardStubs[Ln],kbdName=Ps['KN'],lgName=Ps['KL'];
kbdName=kbdName.replace(/\s*keyboard\s*/i,'');
util.alert('Sorry, the '+kbdName+' keyboard for '+lgName+' is not currently available!',keymanweb.setDfltKeyboard);
util.alert('Sorry, the '+kbdName+' keyboard for '+lgName+' is not currently available!', keymanweb.setActiveKeyboard(''));
// Restore base keyboard if requested keyboard doesn't load
if(Ln > 0)
{
if(Ln > 0) {
Ps=keymanweb._KeyboardStubs[0];
keymanweb._SetActiveKeyboard(Ps['KI'],Ps['KLC'],true);
}
},10000);
}
}, 10000);
}
/**