am 5962312b: Custom action label should be a part of keyboard identifier
* commit '5962312b0724d8546ef76e3cd065b7baf578822f': Custom action label should be a part of keyboard identifiermain
commit
69b81e3dd3
|
@ -21,7 +21,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
<!-- These code should be aligned with Keyboard.CODE_*. -->
|
<!-- These code should be aligned with Keyboard.CODE_*. -->
|
||||||
<integer name="key_tab">9</integer>
|
<integer name="key_tab">9</integer>
|
||||||
<integer name="key_return">10</integer>
|
<integer name="key_enter">10</integer>
|
||||||
<integer name="key_space">32</integer>
|
<integer name="key_space">32</integer>
|
||||||
<integer name="key_shift">-1</integer>
|
<integer name="key_shift">-1</integer>
|
||||||
<integer name="key_switch_alpha_symbol">-2</integer>
|
<integer name="key_switch_alpha_symbol">-2</integer>
|
||||||
|
|
|
@ -111,6 +111,7 @@
|
||||||
latin:code="@integer/key_shortcut"
|
latin:code="@integer/key_shortcut"
|
||||||
latin:keyIcon="iconShortcutKey"
|
latin:keyIcon="iconShortcutKey"
|
||||||
latin:keyIconDisabled="iconDisabledShortcutKey"
|
latin:keyIconDisabled="iconDisabledShortcutKey"
|
||||||
|
latin:keyLabelFlags="preserveCase"
|
||||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
||||||
latin:parentStyle="f2PopupStyle" />
|
latin:parentStyle="f2PopupStyle" />
|
||||||
<key-style
|
<key-style
|
||||||
|
|
|
@ -93,6 +93,7 @@
|
||||||
latin:code="@integer/key_shortcut"
|
latin:code="@integer/key_shortcut"
|
||||||
latin:keyIcon="iconShortcutKey"
|
latin:keyIcon="iconShortcutKey"
|
||||||
latin:keyIconDisabled="iconDisabledShortcutKey"
|
latin:keyIconDisabled="iconDisabledShortcutKey"
|
||||||
|
latin:keyLabelFlags="preserveCase"
|
||||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
||||||
latin:backgroundType="functional" />
|
latin:backgroundType="functional" />
|
||||||
<key-style
|
<key-style
|
||||||
|
|
|
@ -110,6 +110,7 @@
|
||||||
latin:code="@integer/key_shortcut"
|
latin:code="@integer/key_shortcut"
|
||||||
latin:keyIcon="iconShortcutKey"
|
latin:keyIcon="iconShortcutKey"
|
||||||
latin:keyIconDisabled="iconDisabledShortcutKey"
|
latin:keyIconDisabled="iconDisabledShortcutKey"
|
||||||
|
latin:keyLabelFlags="preserveCase"
|
||||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
||||||
latin:altCode="@integer/key_space"
|
latin:altCode="@integer/key_space"
|
||||||
latin:parentStyle="f1PopupStyle" />
|
latin:parentStyle="f1PopupStyle" />
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<!-- Enter key style -->
|
<!-- Enter key style -->
|
||||||
<key-style
|
<key-style
|
||||||
latin:styleName="defaultEnterKeyStyle"
|
latin:styleName="defaultEnterKeyStyle"
|
||||||
latin:code="@integer/key_return"
|
latin:code="@integer/key_enter"
|
||||||
latin:keyIcon="iconReturnKey"
|
latin:keyIcon="iconReturnKey"
|
||||||
latin:keyLabelFlags="autoXScale|preserveCase"
|
latin:keyLabelFlags="autoXScale|preserveCase"
|
||||||
latin:keyActionFlags="noKeyPreview"
|
latin:keyActionFlags="noKeyPreview"
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<!-- Enter key style -->
|
<!-- Enter key style -->
|
||||||
<key-style
|
<key-style
|
||||||
latin:styleName="defaultEnterKeyStyle"
|
latin:styleName="defaultEnterKeyStyle"
|
||||||
latin:code="@integer/key_return"
|
latin:code="@integer/key_enter"
|
||||||
latin:keyIcon="iconReturnKey"
|
latin:keyIcon="iconReturnKey"
|
||||||
latin:keyLabelFlags="autoXScale|preserveCase"
|
latin:keyLabelFlags="autoXScale|preserveCase"
|
||||||
latin:keyActionFlags="noKeyPreview"
|
latin:keyActionFlags="noKeyPreview"
|
||||||
|
|
|
@ -102,6 +102,7 @@ public class KeyboardId {
|
||||||
id.mHasShortcutKey,
|
id.mHasShortcutKey,
|
||||||
id.isMultiLine(),
|
id.isMultiLine(),
|
||||||
id.imeAction(),
|
id.imeAction(),
|
||||||
|
id.mCustomActionLabel,
|
||||||
id.mLocale
|
id.mLocale
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -121,6 +122,7 @@ public class KeyboardId {
|
||||||
&& other.mHasShortcutKey == this.mHasShortcutKey
|
&& other.mHasShortcutKey == this.mHasShortcutKey
|
||||||
&& other.isMultiLine() == this.isMultiLine()
|
&& other.isMultiLine() == this.isMultiLine()
|
||||||
&& other.imeAction() == this.imeAction()
|
&& other.imeAction() == this.imeAction()
|
||||||
|
&& TextUtils.equals(other.mCustomActionLabel, this.mCustomActionLabel)
|
||||||
&& other.mLocale.equals(this.mLocale);
|
&& other.mLocale.equals(this.mLocale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue