<- Back

Installation

Usage

Loading Keyboard Into List

Attaching

Examples:

Attaching all INPUT elements:
    var el = ['input'];
    for (var i in el) {
        JKME.attach(el[i]);
    }
Get notify when keyboard layout is changed and set respective font names:
    var el = ['input'];
    for (var i in el) {
    	JKME.attach(el[i]).onSwitchedLayout = function (sender, keyboardName) {
    		if (keyboardName === 'ZawgyiL') {
    			sender.element.style.fontFamily = 'Zawgyi-One';
    		} else if (keyboardName.search('Ayar') != -1) {
    			sender.element.style.fontFamily = 'Ayar';
    		} else {
    			sender.element.style.fontFamily = 'Masterpiece Uni Sans, Myanmar3, Parabaik, Paduak, Thanlwin';
    		}
    	}
    }

Detaching

I would be appreciated if you add following code to your page also. And this will display something like Powered by jKeyMagic at the very right bottom of your page.

<div style="font-size:10px;position:relative;bottom:5px;text-align:right;"> Powered by <a href='http://ttkz.me/jkeymagic/index.html'><font color="#ed145b">jKeyMagic</font></a></div>