Skip to content

Commit

Permalink
Also respond to backspace key when deleting selections. Feels more na…
Browse files Browse the repository at this point in the history
…tural
  • Loading branch information
jackschaedler committed Jun 14, 2014
1 parent afb6c06 commit 53d63c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cljs/goya/components/keylistener.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
(def PLUS-KEY 187)
(def LEFT-ARROW-KEY 37)
(def RIGHT-ARROW-KEY 39)
(def BACKSPACE-KEY 8)


(def key-chan (chan))
Expand Down Expand Up @@ -72,6 +73,7 @@
(and (= keyCode A-KEY) (or ctrlKey metaKey))
#(globalcommands/select-all)
(= keyCode C-KEY) #(globalcommands/clear)
(= keyCode BACKSPACE-KEY) #(globalcommands/clear)
(= keyCode A-KEY) #(animation/add-new-frame app)
)]
(when-not (= handler nil) (handler app))))
Expand Down

0 comments on commit 53d63c8

Please sign in to comment.