HS: halt command modes, mock event methods
Parser: - halt default/bubbling: match ident type (not just keyword) - halt the event's: consume possessive marker Runtime: - hs-halt! dispatches: default→preventDefault, bubbling→stopPropagation, event→both Mock DOM: - Add event method dispatch: preventDefault, stopPropagation, stopImmediatePropagation set correct flags on event dict Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1657,8 +1657,8 @@
|
||||
(fn
|
||||
()
|
||||
(let
|
||||
((the-event (and (match-kw "the") (or (match-kw "event") (match-kw "default")))))
|
||||
(list (quote halt!) (if the-event "event" "default")))))
|
||||
((mode (cond ((match-kw "the") (do (match-kw "event") (match-kw "'s") "event")) ((or (match-kw "default") (and (= (tp-val) "default") (do (adv!) true))) "default") ((or (match-kw "bubbling") (and (= (tp-val) "bubbling") (do (adv!) true))) "bubbling") (true "event"))))
|
||||
(list (quote halt!) mode))))
|
||||
(define
|
||||
parse-param-list
|
||||
(fn () (if (= (tp-type) "paren-open") (parse-call-args) (list))))
|
||||
|
||||
Reference in New Issue
Block a user