replace caps lock icon at symbol keyboard with strings
This commit is contained in:
parent
3ddd9609c1
commit
442bf2388c
|
@ -312,7 +312,7 @@ class MyKeyboard {
|
|||
text = a.getText(R.styleable.MyKeyboard_Key_keyOutputText)
|
||||
topSmallNumber = a.getString(R.styleable.MyKeyboard_Key_topSmallNumber) ?: ""
|
||||
|
||||
if (label.isNotEmpty() && codes.firstOrNull() != KEYCODE_MODE_CHANGE) {
|
||||
if (label.isNotEmpty() && codes.firstOrNull() != KEYCODE_MODE_CHANGE && codes.firstOrNull() != KEYCODE_SHIFT) {
|
||||
codes = arrayListOf(label[0].toInt())
|
||||
}
|
||||
a.recycle()
|
||||
|
|
|
@ -879,7 +879,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
|||
mPopupPreviewY += popupHeight
|
||||
}
|
||||
|
||||
if (key.label.isNotEmpty() && key.codes.firstOrNull() != MyKeyboard.KEYCODE_MODE_CHANGE) {
|
||||
if (key.label.isNotEmpty() && key.codes.firstOrNull() != MyKeyboard.KEYCODE_MODE_CHANGE && key.codes.firstOrNull() != MyKeyboard.KEYCODE_SHIFT) {
|
||||
if (previewPopup.isShowing) {
|
||||
previewPopup.update(mPopupPreviewX, mPopupPreviewY, popupWidth, popupHeight)
|
||||
} else {
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<Key
|
||||
app:codes="-1"
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyIcon="@drawable/ic_caps_outline_vector"
|
||||
app:keyLabel="=\\<"
|
||||
app:keyWidth="15%p" />
|
||||
<Key
|
||||
app:codes="33"
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<Key
|
||||
app:codes="-1"
|
||||
app:keyEdgeFlags="left"
|
||||
app:keyIcon="@drawable/ic_caps_outline_vector"
|
||||
app:keyLabel="\?123"
|
||||
app:keyWidth="15%p" />
|
||||
<Key
|
||||
app:codes="161"
|
||||
|
|
Loading…
Reference in New Issue