[TIMOB-27978] TiAPI: Add "isTrusted" property to all events
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | SearchBar, Switch, android, event, iOS, picker, refreshcontrol |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2020-06-24T00:46:18.000+0000 |
Updated | 2021-02-22T18:54:47.000+0000 |
Description
*Summary:*
We should add an "isTrusted" boolean property to all events. This is a standard property available to web developers which is set to
true
if the event was made by user interaction. It is set false
if the event was triggered programmatically. This is mostly useful UI based events.
https://developer.mozilla.org/docs/Web/API/Event/isTrusted
*To-Do:*
When an event is fired natively, the core code should add an "isTrusted" property if missing and default it to true
. Events fired from JavaScript should default to false
if the property is not defined.
We should set "isTrusted" to true
/false
directly for:
* Ti.UI.Picker
"change"
* Ti.UI.RefreshControl
"beginRefreshing"
* Ti.UI.SearchBar
"change"
* Ti.UI.Switch
"change"
* Ti.UI.Tab
"selected" and "unselected"
No comments