forked from extern/Unexpected-Keyboard
Enable pin layout for decimal and signed inputs
Decimal and signed inputs are more common than expected. Adding a few keys is enough to support these.
This commit is contained in:
parent
96db0397f0
commit
30198acddd
@ -10,13 +10,13 @@
|
|||||||
<key shift="1.0" key0="4" indication="GHI"/>
|
<key shift="1.0" key0="4" indication="GHI"/>
|
||||||
<key key0="5" indication="JKL"/>
|
<key key0="5" indication="JKL"/>
|
||||||
<key key0="6" indication="MNO"/>
|
<key key0="6" indication="MNO"/>
|
||||||
<key key0="(" key3=":"/>
|
<key key0="(" key3=":" key4="-"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<key shift="1.0" key0="7" indication="PQRS"/>
|
<key shift="1.0" key0="7" indication="PQRS"/>
|
||||||
<key key0="8" indication="TUV"/>
|
<key key0="8" indication="TUV"/>
|
||||||
<key key0="9" indication="WXYZ"/>
|
<key key0="9" indication="WXYZ"/>
|
||||||
<key key0=")" key3="/"/>
|
<key key0=")" key2="," key3="/" key4="."/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<key shift="1.0" key0="*" key1="switch_text" key3="switch_numeric"/>
|
<key shift="1.0" key0="*" key1="switch_text" key3="switch_numeric"/>
|
||||||
|
@ -230,8 +230,6 @@ public class Keyboard2 extends InputMethodService
|
|||||||
switch (info.inputType & InputType.TYPE_MASK_CLASS)
|
switch (info.inputType & InputType.TYPE_MASK_CLASS)
|
||||||
{
|
{
|
||||||
case InputType.TYPE_CLASS_NUMBER:
|
case InputType.TYPE_CLASS_NUMBER:
|
||||||
if ((info.inputType & (InputType.TYPE_NUMBER_FLAG_DECIMAL | InputType.TYPE_NUMBER_FLAG_SIGNED)) != 0)
|
|
||||||
return R.xml.numeric;
|
|
||||||
return R.xml.pin;
|
return R.xml.pin;
|
||||||
case InputType.TYPE_CLASS_PHONE:
|
case InputType.TYPE_CLASS_PHONE:
|
||||||
case InputType.TYPE_CLASS_DATETIME:
|
case InputType.TYPE_CLASS_DATETIME:
|
||||||
|
Loading…
Reference in New Issue
Block a user