Event.isTrusted - Web documentation
property Event.isTrusted

Returns true if event was dispatched by the user agent, and false otherwise.

Type

boolean