Utility functions for working with low-level synthetic js events on the DOM
Utility functions for working with low-level synthetic js events on the DOM
(alt? evt)Returns true if the event has the alt key code.
Returns true if the event has the alt key code.
(ctrl? evt)Returns true if the event has the ctrl key code.
Returns true if the event has the ctrl key code.
(delete? evt)Returns true if the event has the delete key code.
Returns true if the event has the delete key code.
(down-arrow? evt)Returns true if the event has the down arrow key code.
Returns true if the event has the down arrow key code.
(end? evt)Returns true if the event has the end key code.
Returns true if the event has the end key code.
(enter-key? evt)Returns true if the event has the enter key code.
Returns true if the event has the enter key code.
(enter? evt)Returns true if the event has the enter key code.
Returns true if the event has the enter key code.
(escape-key? evt)Returns true if the event has the escape key code.
Returns true if the event has the escape key code.
(escape? evt)Returns true if the event has the escape key code.
Returns true if the event has the escape key code.
(F10? evt)Returns true if the event has the F10 key code.
Returns true if the event has the F10 key code.
(F11? evt)Returns true if the event has the F11 key code.
Returns true if the event has the F11 key code.
(F12? evt)Returns true if the event has the F12 key code.
Returns true if the event has the F12 key code.
(F1? evt)Returns true if the event has the F1 key code.
Returns true if the event has the F1 key code.
(F2? evt)Returns true if the event has the F2 key code.
Returns true if the event has the F2 key code.
(F3? evt)Returns true if the event has the F3 key code.
Returns true if the event has the F3 key code.
(F4? evt)Returns true if the event has the F4 key code.
Returns true if the event has the F4 key code.
(F5? evt)Returns true if the event has the F5 key code.
Returns true if the event has the F5 key code.
(F6? evt)Returns true if the event has the F6 key code.
Returns true if the event has the F6 key code.
(F7? evt)Returns true if the event has the F7 key code.
Returns true if the event has the F7 key code.
(F8? evt)Returns true if the event has the F8 key code.
Returns true if the event has the F8 key code.
(F9? evt)Returns true if the event has the F9 key code.
Returns true if the event has the F9 key code.
(home? evt)Returns true if the event has the home key code.
Returns true if the event has the home key code.
(is-key? code evt)Is the given key code on the given event?
Is the given key code on the given event?
(left-arrow? evt)Returns true if the event has the left arrow key code.
Returns true if the event has the left arrow key code.
(page-down? evt)Returns true if the event has the page down key code.
Returns true if the event has the page down key code.
(page-up? evt)Returns true if the event has the page up key code.
Returns true if the event has the page up key code.
(prevent-default! evt)Calls .preventDefault on the given event. Safe to use in CLJC files.
Calls .preventDefault on the given event. Safe to use in CLJC files.
(right-arrow? evt)Returns true if the event has the right arrow key code.
Returns true if the event has the right arrow key code.
(shift? evt)Returns true if the event has the shift key code.
Returns true if the event has the shift key code.
(stop-propagation! evt)Calls .stopPropagation on the given event. Safe to use in CLJC files.
Calls .stopPropagation on the given event. Safe to use in CLJC files.
(tab? evt)Returns true if the event has the tab key code.
Returns true if the event has the tab key code.
(target-value evt)Returns the event #js evt.target.value. Safe to use in CLJC.
Returns the event #js evt.target.value. Safe to use in CLJC.
(up-arrow? evt)Returns true if the event has the up arrow key code.
Returns true if the event has the up arrow key code.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |