언어 설정

Menu
Sites
Language
Tizen:Setting and Rotarydetent won't work in Wearable Web IME Application

I am developing a custom wearable keyboard application. When I use "document.addEventListener('rotarydetent ', function(){}, false)" to detect bezel rotation event, it won't work in this web IME application, although it will still work in a normal application.

Also, in config.xml file, "<tizen:setting hwkey-event='disable'/>" will not work either.

I am glad to know if these are bugs or these are how Tizen web IME is designed.

Can anyone help?

 

Responses

9 댓글
Nafisul Islam Kiron

Hello, please take a look here

http://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=292524

Heng Liu

Hi, thank you. I have tried the code in web-helper-client.js file in 2.3.1 WebInputMethodEditor, however, it is still not working. Could you please tell me where to add that peice of code in web-helper-client.js file?

Nafisul Islam Kiron

You add it in your main.js file.

Heng Liu

I tried to add this code everywhere, but it just won't work. I just want to see how you can do that.

Nafisul Islam Kiron

Sorry, you were right, it was in web-helper-client.js file.


Here is where I put my code in web-helper-client.js file.

/*
 * Copyright (c) 2012 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

rotaryDetentCallback = function rotaryDetentHandler(e) {
        var direction = e.detail.direction;
        if (direction === "CW") {
         alert("<-");
        } else if (direction === "CCW") {
         alert("->");
        }
    };
window.addEventListener("rotarydetent", rotaryDetentCallback);

var WebHelperClient = {
. . . . . . . //So on

 

Heng Liu

Hi, I created a whole new web IME 2.3.1 project, and then copied and pasted your code in web-helper-client.js and I didn't touch anything else. After I ran it on my gear s2, nothing happened when I rotate the bezel. So wierd.

Anyway, thank you for your answer.

tal buaron

Hello Heng Liu,

Did you managed to make IME keyboard that can be uninstall from "samsung gear" application on the phone?

I woul'd appreciate a response from you.

Thanks,

Tal

Heng Liu

Hi Tal Buaron,

Sorry, I have not been working on that part yet. But if I start working on it and find a way to do, I will let you know. By the way, I still want to know if you successfully detected the rotation of the bezel. If you can do that, pls let me know.

Thank you.

tal buaron

Hi,

I did tried the bezel rotation (same as you did) and it didn't worked, I will try more ways to do it and update you if I will find the solution.

The problem is that the bezel rotation is working on the application "under" the keyboard and not on the keyboard itself.

Thanks,

Tal b