aboutsummaryrefslogtreecommitdiffstats
path: root/java/res/xml-sw600dp/key_styles_common.xml
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-05-21 17:14:31 -0700
committerTadashi G. Takaoka <takaoka@google.com>2013-06-04 18:20:06 +0900
commit9552badf3c24d2098d227b0ddca0721b928a10b1 (patch)
treec828bfe0f5b8d68fbb61d699cfaf0b2c8ff8d4a2 /java/res/xml-sw600dp/key_styles_common.xml
parent2a9882a433e2372ac32fbc0def578d4d9a97a676 (diff)
downloadlatinime-9552badf3c24d2098d227b0ddca0721b928a10b1.tar.gz
latinime-9552badf3c24d2098d227b0ddca0721b928a10b1.tar.xz
latinime-9552badf3c24d2098d227b0ddca0721b928a10b1.zip
Add CODE_CAPSLOCK for long press shift key
This change utilizes the no panel auto more key feature to implement long press shift key for shift lock. Change-Id: I3995d25dc35aea3c67b5aa29299815462eff9cad
Diffstat (limited to 'java/res/xml-sw600dp/key_styles_common.xml')
-rw-r--r--java/res/xml-sw600dp/key_styles_common.xml22
1 files changed, 13 insertions, 9 deletions
diff --git a/java/res/xml-sw600dp/key_styles_common.xml b/java/res/xml-sw600dp/key_styles_common.xml
index 6b06ce77a..a2d2fd827 100644
--- a/java/res/xml-sw600dp/key_styles_common.xml
+++ b/java/res/xml-sw600dp/key_styles_common.xml
@@ -36,34 +36,38 @@
</default>
</switch>
<!-- Functional key styles -->
+ <!-- Base style for shift key. A single space is used for dummy label in moreKeys. -->
+ <key-style
+ latin:styleName="baseForShiftKeyStyle"
+ latin:code="!code/key_shift"
+ latin:keyActionFlags="noKeyPreview"
+ latin:keyLabelFlags="preserveCase"
+ latin:moreKeys="!noPanelAutoMoreKey!, |!code/key_capslock" />
<switch>
<case
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetAutomaticShifted"
>
<key-style
latin:styleName="shiftKeyStyle"
- latin:code="!code/key_shift"
latin:keyIcon="!icon/shift_key_shifted"
- latin:keyActionFlags="noKeyPreview"
- latin:backgroundType="stickyOff" />
+ latin:backgroundType="stickyOff"
+ latin:parentStyle="baseForShiftKeyStyle" />
</case>
<case
latin:keyboardLayoutSetElement="alphabetShiftLocked|alphabetShiftLockShifted"
>
<key-style
latin:styleName="shiftKeyStyle"
- latin:code="!code/key_shift"
latin:keyIcon="!icon/shift_key_shifted"
- latin:keyActionFlags="noKeyPreview"
- latin:backgroundType="stickyOn" />
+ latin:backgroundType="stickyOn"
+ latin:parentStyle="baseForShiftKeyStyle" />
</case>
<default>
<key-style
latin:styleName="shiftKeyStyle"
- latin:code="!code/key_shift"
latin:keyIcon="!icon/shift_key"
- latin:keyActionFlags="noKeyPreview"
- latin:backgroundType="stickyOff" />
+ latin:backgroundType="stickyOff"
+ latin:parentStyle="baseForShiftKeyStyle" />
</default>
</switch>
<key-style