mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
This change removes unused `*_load.js` files and inlines the code from `laokeys_load.js`. Current Keyman versions no longer produce _load.js files when compiling a keyboard, so these files were pretty outdated. Build-bot: skip build:web Test-bot: skip
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src='https://s.keyman.com/kmw/engine/17.0.331/keymanweb.js'></script>
|
|
|
|
<script type="text/javascript">
|
|
keyman.init().then(async function() {
|
|
await keyman.addKeyboards({
|
|
id: "laokeys",
|
|
name: "Lao (Phonetic)",
|
|
languages: { id: 'lo', name: 'Lao' },
|
|
filename: "./js/laokeys.js"
|
|
});
|
|
keyman.setActiveKeyboard('laokeys');
|
|
keyman.osk.hide();
|
|
});
|
|
|
|
function KWControlClick() {
|
|
if(keyman.osk.isEnabled()) {
|
|
keyman.osk.hide();
|
|
} else {
|
|
keyman.osk.show(true); // Specifies that the OSK should display whenever a valid control has focus, re-enabling the default behavior.
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Manual Mode Example</h1>
|
|
<form action='.' method='post'>
|
|
|
|
<p><img style="border: solid 1px black; padding: 2px 2px 3px 2px" src='js/kmicon.png' alt='KeymanWeb' onclick='KWControlClick()' id='KWControl' /></p>
|
|
|
|
<p><input type='text' id='multilingual' name='multilingual' size="40" /></p>
|
|
<p><textarea cols='40' rows='5'></textarea></p>
|
|
|
|
<a href="manual-control">Back to Document</a>
|
|
</form>
|
|
</body>
|
|
</html>
|