
##########
InputEvent
##########

.. js:class:: wv.Event.InputEvent

   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wv.Event.InputEvent.constructor`
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wv.Event.InputEvent.viewKey`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~wv.Event.InputEvent.getDate`
   * :js:meth:`~wv.Event.InputEvent.getHandled`
   * :js:meth:`~wv.Event.InputEvent.setHandled`
   
   



.. rst-class:: kind-group kind-constructors

.. rubric:: Constructors
   :class: kind-group-title


.. js:method:: wv.Event.InputEvent.constructor

      .. rst-class:: sig-pretty-signature
      
         | InputEvent(**viewKey**\ : :js:data:`ViewKey <wv.Sc.ViewKey>`\ ?): :js:class:`InputEvent <wv.Event.InputEvent>`
      
      **Parameters**
      
      
         **viewKey**\ : :js:data:`ViewKey <wv.Sc.ViewKey>` = ViewKey.Default
      
      
            key for the View the event is occurring in
      
      
      
      **Returns**\ : :js:class:`InputEvent <wv.Event.InputEvent>`
      



.. rst-class:: kind-group kind-accessors

.. rubric:: Accessors
   :class: kind-group-title


.. js:method:: wv.Event.InputEvent.viewKey

      .. rst-class:: sig-pretty-signature
      
         | *get* viewKey(): :js:data:`ViewKey <wv.Sc.ViewKey>`
      
      Get the ViewKey this event is associated with.
      
      **Returns**\ : :js:data:`ViewKey <wv.Sc.ViewKey>`
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: wv.Event.InputEvent.getDate

      .. rst-class:: sig-pretty-signature
      
         | getDate(): *Date*
      
      Gets the Date this event occurred
      
      **Returns**\ : *Date*
      
      
         the event Date
      
      



.. js:method:: wv.Event.InputEvent.getHandled

      .. rst-class:: sig-pretty-signature
      
         | getHandled(): *boolean*
      
      Gets the handled state of the event
      
      **Returns**\ : *boolean*
      
      
         whether the event has been handled
      
      



.. js:method:: wv.Event.InputEvent.setHandled

      .. rst-class:: sig-pretty-signature
      
         | setHandled(**handled**\ : *boolean*\ ): *void*
      
      Sets the handled state of the event. When an event has been handled it will not propagate any further
      
      **Parameters**
      
      
         **handled**\ : *boolean*
      
      
            Indicates whether this event has been handled.
      
      
      
      **Returns**\ : *void*
      




