mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
replace caps lock icon at symbol keyboard with strings
This commit is contained in:
@ -312,7 +312,7 @@ class MyKeyboard {
|
|||||||
text = a.getText(R.styleable.MyKeyboard_Key_keyOutputText)
|
text = a.getText(R.styleable.MyKeyboard_Key_keyOutputText)
|
||||||
topSmallNumber = a.getString(R.styleable.MyKeyboard_Key_topSmallNumber) ?: ""
|
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())
|
codes = arrayListOf(label[0].toInt())
|
||||||
}
|
}
|
||||||
a.recycle()
|
a.recycle()
|
||||||
|
@ -879,7 +879,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
|||||||
mPopupPreviewY += popupHeight
|
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) {
|
if (previewPopup.isShowing) {
|
||||||
previewPopup.update(mPopupPreviewX, mPopupPreviewY, popupWidth, popupHeight)
|
previewPopup.update(mPopupPreviewX, mPopupPreviewY, popupWidth, popupHeight)
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
<Key
|
<Key
|
||||||
app:codes="-1"
|
app:codes="-1"
|
||||||
app:keyEdgeFlags="left"
|
app:keyEdgeFlags="left"
|
||||||
app:keyIcon="@drawable/ic_caps_outline_vector"
|
app:keyLabel="=\\<"
|
||||||
app:keyWidth="15%p" />
|
app:keyWidth="15%p" />
|
||||||
<Key
|
<Key
|
||||||
app:codes="33"
|
app:codes="33"
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
<Key
|
<Key
|
||||||
app:codes="-1"
|
app:codes="-1"
|
||||||
app:keyEdgeFlags="left"
|
app:keyEdgeFlags="left"
|
||||||
app:keyIcon="@drawable/ic_caps_outline_vector"
|
app:keyLabel="\?123"
|
||||||
app:keyWidth="15%p" />
|
app:keyWidth="15%p" />
|
||||||
<Key
|
<Key
|
||||||
app:codes="161"
|
app:codes="161"
|
||||||
|
Reference in New Issue
Block a user