Fixed a bug I introduced when I made Tibetan keyboards more modular.

This commit is contained in:
dchandler 2002-10-23 04:03:17 +00:00
parent 8da821d503
commit f6bcc49119

View file

@ -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);
} }
} }