adding some keyboard layout updates

This commit is contained in:
tibbi 2022-01-05 17:48:34 +01:00
parent 58907c8562
commit 5d6f88d2bc
2 changed files with 11 additions and 54 deletions

View File

@ -38,7 +38,6 @@ class SimpleKeyboardIME : InputMethodService(), KeyboardView.OnKeyboardActionLis
} else { } else {
inputConnection.commitText("", 1) inputConnection.commitText("", 1)
} }
caps = !caps
keyboard!!.isShifted = caps keyboard!!.isShifted = caps
keyboardView!!.invalidateAllKeys() keyboardView!!.invalidateAllKeys()
} }

View File

@ -6,45 +6,6 @@
android:keyBackground="@color/color_primary_dark" android:keyBackground="@color/color_primary_dark"
android:keyTextColor="@color/color_accent" android:keyTextColor="@color/color_accent"
android:verticalGap="3px"> android:verticalGap="3px">
<Row>
<Key
android:codes="49"
android:keyEdgeFlags="left"
android:keyLabel="1" />
<Key
android:codes="50"
android:keyLabel="2" />
<Key
android:codes="51"
android:keyLabel="3" />
<Key
android:codes="52"
android:keyLabel="4" />
<Key
android:codes="53"
android:keyLabel="5" />
<Key
android:codes="54"
android:keyLabel="6" />
<Key
android:codes="55"
android:keyLabel="7" />
<Key
android:codes="56"
android:keyLabel="8" />
<Key
android:codes="57"
android:keyLabel="9" />
<Key
android:codes="48"
android:keyLabel="0" />
<Key
android:codes="-5"
android:isRepeatable="true"
android:keyWidth="20%p"
android:keyEdgeFlags="right"
android:keyLabel="DEL" />
</Row>
<Row> <Row>
<Key <Key
android:codes="113" android:codes="113"
@ -108,14 +69,11 @@
<Key <Key
android:codes="108" android:codes="108"
android:keyLabel="l" /> android:keyLabel="l" />
<Key
android:codes="35,64"
android:keyEdgeFlags="right"
android:keyLabel="\# \@" />
</Row> </Row>
<Row> <Row>
<Key <Key
android:codes="-1" android:codes="-1"
android:keyWidth="15%p"
android:keyEdgeFlags="left" android:keyEdgeFlags="left"
android:keyLabel="CAPS" /> android:keyLabel="CAPS" />
<Key <Key
@ -140,12 +98,12 @@
android:codes="109" android:codes="109"
android:keyLabel="m" /> android:keyLabel="m" />
<Key <Key
android:codes="46" android:codes="-5"
android:keyLabel="." /> android:iconPreview="@null"
<Key android:isRepeatable="true"
android:codes="63,33,58" android:keyWidth="15%p"
android:keyEdgeFlags="right" android:keyEdgeFlags="right"
android:keyLabel="\? ! :" /> android:keyIcon="@drawable/ic_arrow_left_vector" />
</Row> </Row>
<Row android:rowEdgeFlags="bottom"> <Row android:rowEdgeFlags="bottom">
<Key <Key
@ -153,15 +111,15 @@
android:keyWidth="10%p" android:keyWidth="10%p"
android:keyEdgeFlags="left" android:keyEdgeFlags="left"
android:keyLabel="," /> android:keyLabel="," />
<Key
android:codes="47"
android:keyWidth="10%p"
android:keyLabel="/" />
<Key <Key
android:codes="32" android:codes="32"
android:iconPreview="@null"
android:isRepeatable="true" android:isRepeatable="true"
android:keyWidth="60%p" android:keyWidth="60%p"
android:keyLabel="SPACE" /> android:keyLabel="" />
<Key
android:codes="46"
android:keyLabel="." />
<Key <Key
android:codes="-4" android:codes="-4"
android:keyWidth="20%p" android:keyWidth="20%p"