-
Notifications
You must be signed in to change notification settings - Fork 60
Legacy API: IME
Hyojin Kim edited this page Jun 1, 2016
·
4 revisions
For converting IME of Legacy to TOAST API, please refer to the followings.
-
Before
function onKeyCallback(key, str, id) { switch(key){ case 29443: // ENTER ... onBlur(); break; case 88: // RETURN case 45: // EXIT ... onBlur(); break; } } var imeBox = new IMEShell_Common(); imeBox.inputboxID = 'searchText1'; imeBox.inputTitle = 'Common Input Title1'; imeBox.onCompleteFunc = onCompleteText; imeBox.onKeyPressFunc = onKeyCallback; imeBox.context = this; imeBox.setBlockSpace(true); document.getElementById('searchText').focus(); // 'searchText' : id of input tag imeBox.onShow();
-
After
imeEle = document.getElementById('searchText'); // 'searchText' : id of input tag imeEle.addEventListener('submit', function (e) { console.log("The DONE button of IME is pushed"); }); imeEle.addEventListener('cancel', function (e) { console.log("The CANCEL button of IME is pushed"); }); imeEle.addEventListener('blur', function (e) { console.log("The INPUT element loses focus"); if(imeEle.getAttribute('data-ime-show') == 'false') { console.log("The IME is closed"); } }); imeEle.focus();
uuuu
Getting Started
Converting Tizen to Toast
- Prepare to convert
- Tizen API: AVPlay
- Tizen API: DrmInfo(Deprecated)
- Tizen API: Application
- Tizen API: TVInputDevice
- Tizen API: TVAudioControl
- Tizen API: TVWindow
- Tizen API: TVChannel
- Tizen API: IME
- Tizen API: ProductInfo
- Tizen API: Network
- How to detect platform
Converting Legacy to Toast
- Prepare to convert
- Legacy API: AVPlay
- Legacy API: TVInfo
- Legacy API: Common
- Legacy API: InputDevice
- Legacy API: AudioControl
- Legacy API: TVWindow
- Legacy API: TVChannel
- Legacy API: IME
- How to detect platform
API Reference
- supported cordova plugin
- toast.Media
- toast.MediaPlugin
- toast.drminfo(Deprecated)
- toast.application
- toast.inputdevice
- toast.tvaudiocontrol
- toast.tvwindow
- toast.tvchannel
- toast.billing
Supported platforms
Sample App
Contribution
Frequently Asked Questions