From: k2.nagaraju Date: Tue, 23 Apr 2019 14:44:53 +0000 (+0530) Subject: Add support for IME Runtime X-Git-Tag: accepted/tizen/unified/20190426.054156~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33cbc46c332555b79a6720ea128e95eee24cbffd;p=platform%2Fframework%2Fweb%2Fwrtjs.git Add support for IME Runtime Change-Id: I7c063167d94f13e0ccb608539b8bbc20c8f49b2d Signed-off-by: k2.nagaraju --- diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index 0d8988c..634ec88 100755 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -114,6 +114,8 @@ class WebApplication { }); this.mainWindow.webContents.on('did-finish-load', function() { console.log('webContents did-finish-load'); + if (wrt.isIMEWebApp()) + self.activateIMEWebHelperClient(); if (self.preloadState == 'readyToShow' || self.preloadState == 'preload') { self.suspend(); } @@ -214,6 +216,12 @@ class WebApplication { '})()'; wrt.executeJS(this.mainWindow.webContents, kAppControlEventScript); } + activateIMEWebHelperClient() { + console.log('webApplication : activateIMEWebHelperClient'); + const kImeActivateFunctionCallScript = + '(function(){WebHelperClient.impl.activate();})()'; + wrt.executeJS(this.mainWindow.webContents, kImeActivateFunctionCallScript); + } show() { console.log('WebApplication : show'); this.preloadState = 'none';