Hi,

  I am using cljs + google closure.

  I am dealing with keyboard events.

  I have a nested SVG as follows:

  <svg desktop ... >
    ...
    <svg window ... >
    </svg window >
    ...
  </svg desktop >

  The outer svg element represents the desktop. The inner svg element 
represents a window.


  Now, I am dealing with keyboard inputs -- some of which I want to hit the 
window, and some of which I hit the desktop.

  For example, [:keypress :a] [:keypress :b] ==> svg window
    [:keypress :Alt :F4] ==> svg desktop


  To do this, I'd like to be able to, for a keyboard event, distinguish whether 
it's being hit during the _capture_ (outward in, i.e. desktop => window) or 
during the _bubble_ (inward out, i..e window => desktop) phases.

  Thus, my question -- during an event handler, is there a way to figure out if 
the event being processed is from the capture phase or the bubble phase?

Thanks!

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to