Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27978

TiAPI: Add "isTrusted" property to all events

    Details

      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"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration