mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
Add ctrl? predicate to keyboard ns.
This commit is contained in:
@@ -5,5 +5,9 @@
|
||||
(fn [e]
|
||||
(= (.-keyCode e) keycode)))
|
||||
|
||||
(defn ctrl?
|
||||
[event]
|
||||
(.-ctrlKey event))
|
||||
|
||||
(def esc? (is-keycode? 27))
|
||||
(def enter? (is-keycode? 13))
|
||||
|
||||
Reference in New Issue
Block a user