mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 23:18:21 +02:00
Add ctrl? predicate to keyboard ns.
This commit is contained in:
parent
3dd0d840d9
commit
0b5de2d2b8
1 changed files with 4 additions and 0 deletions
|
@ -5,5 +5,9 @@
|
|||
(fn [e]
|
||||
(= (.-keyCode e) keycode)))
|
||||
|
||||
(defn ctrl?
|
||||
[event]
|
||||
(.-ctrlKey event))
|
||||
|
||||
(def esc? (is-keycode? 27))
|
||||
(def enter? (is-keycode? 13))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue