diff options
author | 2013-06-05 02:19:01 +0000 | |
---|---|---|
committer | 2013-06-05 02:19:02 +0000 | |
commit | 0bfc2bc419e7e758c6ce17b5fb959687f583551a (patch) | |
tree | 2c429078fce295f10a8aa35e91644022bd2512db /java/res/xml-sw600dp | |
parent | ad0c6d7b3635f0c1d92a3e4d895909234b7a2f0d (diff) | |
parent | 9552badf3c24d2098d227b0ddca0721b928a10b1 (diff) | |
download | latinime-0bfc2bc419e7e758c6ce17b5fb959687f583551a.tar.gz latinime-0bfc2bc419e7e758c6ce17b5fb959687f583551a.tar.xz latinime-0bfc2bc419e7e758c6ce17b5fb959687f583551a.zip |
Merge "Add CODE_CAPSLOCK for long press shift key"
Diffstat (limited to 'java/res/xml-sw600dp')
-rw-r--r-- | java/res/xml-sw600dp/key_styles_common.xml | 22 |
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 |