Skip to content

Commit

Permalink
docs: update ClickNotifier addClickShortcut JavaDoc
Browse files Browse the repository at this point in the history
Adds paragraph about `resetFocusOnActiveElement()` feature in `addClickShortcut` method.

Related-to: #5959
  • Loading branch information
tltv committed Dec 19, 2023
1 parent 757c8cb commit bdbce95
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ default Registration addSingleClickListener(
* used to make sure that value synchronization of input fields is not
* blocked for the shortcut key (e.g. Enter key). To change this behavior,
* call {@link ShortcutRegistration#setBrowserDefaultAllowed(boolean)}.
* <p>
* {@link ShortcutRegistration#resetFocusOnActiveElement()} resets focus on
* active element before triggering click event handler. It ensures that
* value synchronization of input fields with a ValueChangeMode.ON_CHANGE is
* done before click event handler is executed (e.g. when Enter key saves a
* form).
*
* @param key
* primary {@link Key} used to trigger the shortcut. Cannot be
Expand Down

0 comments on commit bdbce95

Please sign in to comment.