mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
js/ui/custom.js: allow deletion of brushes w/ <Shift> + LMB.
This commit is contained in:
parent
d9770b4f2b
commit
ca64311767
@ -9,9 +9,14 @@ var custom = (function(){
|
||||
new_brush.append(rapper)
|
||||
custom_rapper.appendChild(rapper)
|
||||
// store in localstorage?
|
||||
rapper.addEventListener("click", function(){
|
||||
// load this brush
|
||||
exports.load(new_brush)
|
||||
rapper.addEventListener("click", function(e){
|
||||
if (e.shiftKey) {
|
||||
rapper.parentNode.removeChild(rapper)
|
||||
delete new_brush
|
||||
} else {
|
||||
// load this brush
|
||||
exports.load(new_brush)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user