mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
Added contentDescriptions for the keys and a new string resource
This commit is contained in:
@ -147,7 +147,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
override fun onPopulateNodeForVirtualView(virtualViewId: Int, node: AccessibilityNodeInfoCompat) {
|
||||
node.className = MyKeyboardView::class.simpleName
|
||||
val key = mKeyboard?.mKeys?.get(virtualViewId)
|
||||
node.contentDescription = key?.label ?: "keyboard key"
|
||||
node.contentDescription = key?.getContentDescription(context)
|
||||
val bounds = updateBoundsForInterval(virtualViewId)
|
||||
node.setBoundsInParent(bounds)
|
||||
}
|
||||
|
Reference in New Issue
Block a user