Use legacy function pointer for old legacy setTextEntryCallback signature.