pdf_field_event_format is calling the keystroke event, rather than
the format event. This means we are giving spurious warnings at
unexpected times (document load/widget resynthesis etc).
The fix is just to call the correct event. Credit to Tor for spotting
the 1 character typo!
pdf_js *js = doc->js;
if (js)
{
- pdf_obj *action = pdf_dict_getp_inheritable(ctx, field, "AA/K/JS");
+ pdf_obj *action = pdf_dict_getp_inheritable(ctx, field, "AA/F/JS");
if (action)
{
const char *value = pdf_field_value(ctx, field);