Skip to content

Improve the way to handle actions #14587

@calixteman

Description

@calixteman

The pdf in https://bugzilla.mozilla.org/show_bug.cgi?id=1737260 has some buttons where the click action is an array of Hide actions.
So in order to fix that stuff we must make several changes:

1. collect the actions and put them in an array:

2. These actions can be triggered on different kind of events:

  • for example for a button it's possible to have Mouse Up, Mouse Down, Mouse Enter, Mouse Exit, On Focus and On Blur events (it's at least what is currently available in Acrobat).
  • these events are available for text fields too and probably the others.
  • we must respect the array order which means that JS actions must be triggered one by one and with the correct order.

So instead of binding an action on onclick for example we should bind an action which will run the different handlers for the different possible actions (ResetForm, Hide, GoTo, URI, ...).

3. Implement missing actions like Hide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions