mirror of
https://github.com/keymanapp/keyman.git
synced 2026-11-06 07:57:43 +00:00
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:
parent
98d8b78708
commit
89dc9b335f
2 changed files with 5 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue