1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2014, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<merge
22    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
23>
24    <!-- Go key -->
25    <switch>
26        <case latin:isIconDefined="go_key">
27            <key-style
28                latin:styleName="goActionKeyStyle"
29                latin:keySpec="!icon/go_key|!code/key_enter"
30                latin:parentStyle="defaultEnterKeyStyle" />
31        </case>
32        <default>
33            <key-style
34                latin:styleName="goActionKeyStyle"
35                latin:keySpec="!text/label_go_key|!code/key_enter"
36                latin:parentStyle="defaultEnterKeyStyle" />
37        </default>
38    </switch>
39    <!-- Next key -->
40    <switch>
41        <case latin:isIconDefined="next_key">
42            <key-style
43                latin:styleName="nextActionKeyStyle"
44                latin:keySpec="!icon/next_key|!code/key_enter"
45                latin:parentStyle="defaultEnterKeyStyle" />
46        </case>
47        <default>
48            <key-style
49                latin:styleName="nextActionKeyStyle"
50                latin:keySpec="!text/label_next_key|!code/key_enter"
51                latin:parentStyle="defaultEnterKeyStyle" />
52        </default>
53    </switch>
54    <!-- Previous key -->
55    <switch>
56        <case latin:isIconDefined="previous_key">
57            <key-style
58                latin:styleName="previousActionKeyStyle"
59                latin:keySpec="!icon/previous_key|!code/key_enter"
60                latin:parentStyle="defaultEnterKeyStyle" />
61        </case>
62        <default>
63            <key-style
64                latin:styleName="previousActionKeyStyle"
65                latin:keySpec="!text/label_previous_key|!code/key_enter"
66                latin:parentStyle="defaultEnterKeyStyle" />
67        </default>
68    </switch>
69    <!-- Done key -->
70    <switch>
71        <case latin:isIconDefined="done_key">
72            <key-style
73                latin:styleName="doneActionKeyStyle"
74                latin:keySpec="!icon/done_key|!code/key_enter"
75                latin:parentStyle="defaultEnterKeyStyle" />
76        </case>
77        <default>
78            <key-style
79                latin:styleName="doneActionKeyStyle"
80                latin:keySpec="!text/label_done_key|!code/key_enter"
81                latin:parentStyle="defaultEnterKeyStyle" />
82        </default>
83    </switch>
84    <!-- Send key -->
85    <switch>
86        <case latin:isIconDefined="send_key">
87            <key-style
88                latin:styleName="sendActionKeyStyle"
89                latin:keySpec="!icon/send_key|!code/key_enter"
90                latin:parentStyle="defaultEnterKeyStyle" />
91        </case>
92        <default>
93            <key-style
94                latin:styleName="sendActionKeyStyle"
95                latin:keySpec="!text/label_send_key|!code/key_enter"
96                latin:parentStyle="defaultEnterKeyStyle" />
97        </default>
98    </switch>
99    <!-- Seartch key -->
100    <switch>
101        <case latin:isIconDefined="search_key">
102            <key-style
103                latin:styleName="searchActionKeyStyle"
104                latin:keySpec="!icon/search_key|!code/key_enter"
105                latin:parentStyle="defaultEnterKeyStyle" />
106        </case>
107        <default>
108            <key-style
109                latin:styleName="searchActionKeyStyle"
110                latin:keySpec="!text/label_search_key|!code/key_enter"
111                latin:parentStyle="defaultEnterKeyStyle" />
112        </default>
113    </switch>
114    <switch>
115        <case latin:keyboardTheme="ICS|KLP">
116            <key-style
117                latin:styleName="customLabelActionKeyStyle"
118                latin:keySpec="dummy_label|!code/key_enter"
119                latin:keyLabelFlags="fromCustomActionLabel"
120                latin:backgroundType="action"
121                latin:parentStyle="defaultEnterKeyStyle" />
122        </case>
123        <!-- keyboardTheme="LXXLight|LXXDark" -->
124        <default>
125            <key-style
126                latin:styleName="customLabelActionKeyStyle"
127                latin:keySpec="dummy_label|!code/key_enter"
128                latin:keyLabelFlags="fromCustomActionLabel"
129                latin:backgroundType="functional"
130                latin:parentStyle="defaultEnterKeyStyle" />
131        </default>
132    </switch>
133</merge>
134