Fixed a bug I introduced when I made Tibetan keyboards more modular.
This commit is contained in:
parent
8da821d503
commit
f6bcc49119
1 changed files with 6 additions and 4 deletions
|
@ -1051,14 +1051,16 @@ class JskadKeyboard {
|
|||
* @param dp the DuffPane for which this keyboard will be made
|
||||
* the active keyboard */
|
||||
public void activate(DuffPane dp) {
|
||||
URL tibKeybdURL = null;
|
||||
if (null == tibKeybdURL && keybdIniFile != null) {
|
||||
tibKeybdURL = TibetanMachineWeb.class.getResource(keybdIniFile);
|
||||
if (keybdIniFile != null) {
|
||||
URL tibKeybdURL
|
||||
= TibetanMachineWeb.class.getResource(keybdIniFile);
|
||||
if (null == tibKeybdURL)
|
||||
throw new Error("Cannot load the keyboard initialization resource "
|
||||
+ keybdIniFile);
|
||||
dp.registerKeyboard(tibKeybdURL);
|
||||
} else {
|
||||
dp.registerKeyboard();
|
||||
}
|
||||
dp.registerKeyboard(tibKeybdURL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue