2012-02-07 08:07:23 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
**
|
|
|
|
** Copyright 2012, The Android Open Source Project
|
|
|
|
**
|
|
|
|
** 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.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
|
|
|
|
<merge
|
|
|
|
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
|
|
|
>
|
2012-02-17 07:14:14 +00:00
|
|
|
<!-- Navigate more keys style -->
|
2014-09-02 06:55:44 +00:00
|
|
|
<include latin:keyboardLayout="@xml/key_styles_navigate_more_keys" />
|
2012-02-17 07:14:14 +00:00
|
|
|
<switch>
|
2013-10-07 06:59:41 +00:00
|
|
|
<!-- latin:passwordInput="true" -->
|
2012-02-17 07:14:14 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
|
|
|
latin:navigatePrevious="true"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-02-17 07:14:14 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigatePreviousMoreKeysStyle" />
|
2012-02-17 07:14:14 +00:00
|
|
|
</case>
|
2012-03-05 03:17:32 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-03-05 03:17:32 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle" />
|
|
|
|
</case>
|
2012-02-17 07:14:14 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
|
|
|
latin:navigateNext="true"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-02-17 07:14:14 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateNextMoreKeysStyle" />
|
2012-02-17 07:14:14 +00:00
|
|
|
</case>
|
2012-03-05 03:17:32 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-03-05 03:17:32 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle" />
|
|
|
|
</case>
|
2012-02-17 07:14:14 +00:00
|
|
|
<case
|
|
|
|
latin:navigateNext="true"
|
|
|
|
latin:navigatePrevious="true"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-02-17 07:14:14 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigatePreviousNextMoreKeysStyle" />
|
2012-02-17 07:14:14 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigateNext="true"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-02-17 07:14:14 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateNextMoreKeysStyle" />
|
2012-02-17 07:14:14 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigatePrevious="true"
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2012-02-17 07:14:14 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigatePreviousMoreKeysStyle" />
|
2012-02-17 07:14:14 +00:00
|
|
|
</case>
|
2013-10-07 06:21:23 +00:00
|
|
|
<case
|
2013-10-07 06:59:41 +00:00
|
|
|
latin:passwordInput="true"
|
2013-10-07 06:21:23 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle" />
|
|
|
|
</case>
|
2013-10-07 06:59:41 +00:00
|
|
|
<!-- latin:mode="email|url|phone|number|date|time|datetime" -->
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
|
|
|
latin:navigatePrevious="true"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigatePreviousMoreKeysStyle" />
|
2013-10-07 06:59:41 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle" />
|
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
|
|
|
latin:navigateNext="true"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateNextMoreKeysStyle" />
|
2013-10-07 06:59:41 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle" />
|
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigateNext="true"
|
|
|
|
latin:navigatePrevious="true"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigatePreviousNextMoreKeysStyle" />
|
2013-10-07 06:59:41 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigateNext="true"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateNextMoreKeysStyle" />
|
2013-10-07 06:59:41 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigatePrevious="true"
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigatePreviousMoreKeysStyle" />
|
2013-10-07 06:59:41 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:mode="email|url|phone|number|date|time|datetime"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle" />
|
|
|
|
</case>
|
|
|
|
<!-- default -->
|
2013-10-07 06:21:23 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
|
|
|
latin:navigatePrevious="true"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiPreviousMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
|
|
|
latin:navigateNext="true"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiNextMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigateNext="true"
|
|
|
|
latin:navigatePrevious="true"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiPreviousNextMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigateNext="true"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiNextMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:navigatePrevious="true"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="navigateEmojiPreviousMoreKeysStyle" />
|
2013-10-07 06:21:23 +00:00
|
|
|
</case>
|
2012-02-17 07:14:14 +00:00
|
|
|
<default>
|
|
|
|
<key-style
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:styleName="navigateMoreKeysStyle"
|
|
|
|
latin:parentStyle="navigateEmojiMoreKeysStyle" />
|
2012-02-17 07:14:14 +00:00
|
|
|
</default>
|
|
|
|
</switch>
|
2012-02-07 08:07:23 +00:00
|
|
|
<!-- Enter key style -->
|
|
|
|
<key-style
|
|
|
|
latin:styleName="defaultEnterKeyStyle"
|
2014-08-05 09:43:06 +00:00
|
|
|
latin:keySpec="!icon/enter_key|!code/key_enter"
|
2014-05-15 06:39:01 +00:00
|
|
|
latin:keyLabelFlags="preserveCase|autoXScale|followKeyLabelRatio|followFunctionalTextColor"
|
2012-02-07 08:07:23 +00:00
|
|
|
latin:keyActionFlags="noKeyPreview"
|
2014-05-23 08:49:39 +00:00
|
|
|
latin:backgroundType="action"
|
2012-02-17 07:14:14 +00:00
|
|
|
latin:parentStyle="navigateMoreKeysStyle" />
|
2014-09-02 06:55:44 +00:00
|
|
|
<include latin:keyboardLayout="@xml/key_styles_actions" />
|
2012-02-07 08:07:23 +00:00
|
|
|
<switch>
|
|
|
|
<!-- Shift + Enter in textMultiLine field. -->
|
|
|
|
<case
|
|
|
|
latin:isMultiLine="true"
|
2012-04-04 05:30:42 +00:00
|
|
|
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLockShifted"
|
2012-02-07 08:07:23 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:keySpec="!icon/enter_key|!code/key_shift_enter"
|
|
|
|
latin:parentStyle="defaultEnterKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
2014-02-06 02:34:12 +00:00
|
|
|
<!-- Smiley in textShortMessage field.
|
|
|
|
This <case> should be after Shift + Enter <case> and before any of action <case>. -->
|
|
|
|
<case
|
|
|
|
latin:mode="im"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
|
|
|
latin:parentStyle="emojiKeyStyle" />
|
|
|
|
</case>
|
2014-05-13 02:02:42 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionGo"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="goActionKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
2014-05-13 02:02:42 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionNext"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="nextActionKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
2014-05-13 02:02:42 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionPrevious"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="previousActionKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
2014-05-13 02:02:42 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionDone"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="doneActionKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
2014-05-13 02:02:42 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionSend"
|
2012-02-07 08:07:23 +00:00
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="sendActionKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
2014-05-24 12:18:47 +00:00
|
|
|
<case
|
|
|
|
latin:imeAction="actionSearch"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="searchActionKeyStyle" />
|
2014-09-03 01:52:56 +00:00
|
|
|
</case>
|
|
|
|
<case
|
|
|
|
latin:imeAction="actionCustomLabel"
|
|
|
|
>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
2014-09-02 06:55:44 +00:00
|
|
|
latin:parentStyle="customLabelActionKeyStyle" />
|
2012-02-07 08:07:23 +00:00
|
|
|
</case>
|
|
|
|
<!-- imeAction is either actionNone or actionUnspecified. -->
|
|
|
|
<default>
|
|
|
|
<key-style
|
|
|
|
latin:styleName="enterKeyStyle"
|
|
|
|
latin:parentStyle="defaultEnterKeyStyle" />
|
|
|
|
</default>
|
|
|
|
</switch>
|
|
|
|
</merge>
|