@agx i took a look at the source code, seems like the Persian keyboard you are using is the old GNOME 46 OSK one, i had patched the GNOME OSK Persian layout for 47.
@sohrab I happily take patches to fix that up - preferably tested by somebody speaking the language on p-o-s as there can be ever so subtle differences.