语言

Menu
Sites
Language
Keyboard for Gear

Hi,
I am new in developing for watch.
Can you tell me whether exist some ready script for keyboard?

 

响应

6 回复
Stephan König

Hi Ivanoc,

keyboard is depending on the devices you are using.
Gear S has a build in keyboard which appears automaticaly, e.g. if an input field get focus.
Older devices like Gear 2 have no build in keyboard, but there are some third party keyboards like http://thenextweb.com/apps/2014/06/18/fleksy-finally-launches-keyboard-app-tizen-powered-samsung-gear-2/ .

Maciej

Hello
 

Is it possible to use the keyboard on emulator? I make a sample app with a HTML text input, but when I click on it, the keyboard does not appear.

How can I input text data on emulator?

Seoghyun Kang

Hello,

 

Sure. You can use the keyboard on emulator.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>
    <title>Tizen Web IDE - Tizen - Tizen basic Application</title>
</head>

<body>   
    <input type="text">
</body>
</html>

 

If you use the <input type="text">, you can see the keyboard.

But I remember that old wearable SDK did not support the keyboard.

 

So please use the latest SDK version. (Now it is 2.3.1 SDK.)

Thanks

Palitsyna

Hello,

If the device has build-in keyboard, it is shown automatically after input field was focused. To create an input field, use input tag:

<input type="text" name="name">

Here you can find more information about input tag, its attributes and types: 

http://www.w3schools.com/tags/tag_input.asp

http://www.w3schools.com/html/html_form_attributes.asp

http://www.w3schools.com/html/html_form_input_types.asp

AVSukhov

Hello,

Or you can create your own keyboard using IME application Template in IDE.

Vikram

Yes. Create IME application is let you to create your own IME only by writing HTML, CSS an js code. And I think it is flexible but cumbersome.

For example for the keyboard event like this

<tr class="tr100">
    <td class="key10 keyBtn" onmousedown="javascript:keyPressed('q')" ontouchstart="javascript:keyPressed('q')">q</td>
    <td class="key10 keyBtn" onmousedown="javascript:keyPressed('w')" ontouchstart="javascript:keyPressed('w')">w</td>
    ...
</tr>