Changeset - 96e0e013e28d
[Not reviewed]
default
0 1 0
Drew Perttula - 8 years ago 2017-06-09 08:25:19
drewp@bigasterisk.com
delete key deletes selected notes
Ignore-this: dea1199f74a3ac37a150b11a306b8c1f
1 file changed with 11 insertions and 4 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -104,6 +104,10 @@ Polymer
 

	
 
    @makeZoomAdjs()
 

	
 
    zoomed = @$.zoomed
 
    setupDrop(@$.dia.querySelector('svg'), zoomed.$.rows, @, zoomed.onDrop.bind(zoomed))
 

	
 

	
 
  zoomOrLayoutChanged: ->
 
    # not for cursor updates
 

	
 
@@ -280,7 +284,6 @@ Polymer
 

	
 
  attached: ->
 
    root = @closest('light9-timeline-editor')
 
    setupDrop(@, @$.rows, root, @onDrop.bind(@))
 

	
 
  onDrop: (effect, pos) ->
 
    U = (x) => @graph.Uri(x)
 
@@ -637,9 +640,13 @@ Polymer
 

	
 

	
 
  onDel: ->
 
    patch = {delQuads: [{subject: @song, predicate: @graph.Uri(':note'), object: @uri, graph: @song}], addQuads: []}
 
    @graph.applyAndSendPatch(patch)
 
    deleteNote(@graph, @song, @uri)
 

	
 

	
 
deleteNote = (graph, song, note) ->
 
  patch = {delQuads: [{subject: song, predicate: graph.Uri(':note'), object: note, graph: song}], addQuads: []}
 
  graph.applyAndSendPatch(patch)
 
  
 

	
 
Polymer
 
  is: 'light9-cursor-canvas'
 
@@ -873,7 +880,7 @@ Polymer
 
    @elemById = {}
 

	
 
  attached: ->
 
    @querySelector('svg').add
 
    
 

	
 
  setTimeAxis: (width, yTop, scale) ->
 
    pxPerTick = 50
0 comments (0 inline, 0 general)