According to the documentation on Dynamic Keyboards (DynamicKeyboardBase ) the domain field is meant to be READ_WRITE and is meant to be updated when set to a specific string such as "alphanumeric", "generic", "numeric" etc. However, when setting this field, it remains invalid and does not update accordingly.
print m.keyboard.domain
m.keyboard.domain = "numeric"
print m.keyboard.domain
This code will print:
invalid
invalid
Is this a bug with DynamicKeyboardBase?