vaadin / vaadin/framework

Introduce FocusEvent#isUserOriginated()

Open
#9,972 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

We need to know if a field was focused interactive by user or via API call.
Please introduce a method isUserOriginated() on com.vaadin.event.FieldEvents.FocusEvent.

There are events which provides such a method already (eg: ValueChangeEvent#isUserOriginated).

Note that Martín López (Vaadin, ticket number 2201) has suggested to create this feature request here for Vaadin 8.x.
We have already received a workaround which seems to work so far, at least in our case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with com.vaadin.event.FieldEvents.FocusEvent and compare the existing ValueChangeEvent#isUserOriginated() implementation and behavior. Trace how focus events are created and delivered to determine how user versus API focus is represented; done means FocusEvent exposes isUserOriginated() with matching behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.