(dom-listener {:nubank.workspaces.ui.events/keys [keystroke click action]
:as event})
(match-keystroke? e {:nubank.workspaces.ui.events/keys [modifiers key-code]})
(pd f)
Wraps function f with a call to .preventDefault on the event. This is a helper to compose with event callback functions so they also cancel the default browser event handler.
Usage:
(dom/a {:href "#" :onClick (pd #(console.log :clicked))} "No default")
Wraps function f with a call to .preventDefault on the event. This is a helper to compose with event callback functions so they also cancel the default browser event handler. Usage: (dom/a {:href "#" :onClick (pd #(console.log :clicked))} "No default")
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close