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
|
* @param dp the DuffPane for which this keyboard will be made
|
||||||
* the active keyboard */
|
* the active keyboard */
|
||||||
public void activate(DuffPane dp) {
|
public void activate(DuffPane dp) {
|
||||||
URL tibKeybdURL = null;
|
if (keybdIniFile != null) {
|
||||||
if (null == tibKeybdURL && keybdIniFile != null) {
|
URL tibKeybdURL
|
||||||
tibKeybdURL = TibetanMachineWeb.class.getResource(keybdIniFile);
|
= TibetanMachineWeb.class.getResource(keybdIniFile);
|
||||||
if (null == tibKeybdURL)
|
if (null == tibKeybdURL)
|
||||||
throw new Error("Cannot load the keyboard initialization resource "
|
throw new Error("Cannot load the keyboard initialization resource "
|
||||||
+ keybdIniFile);
|
+ keybdIniFile);
|
||||||
|
dp.registerKeyboard(tibKeybdURL);
|
||||||
|
} else {
|
||||||
|
dp.registerKeyboard();
|
||||||
}
|
}
|
||||||
dp.registerKeyboard(tibKeybdURL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue