diff --git a/main/pub/sole/fab/hymn.hook b/main/pub/sole/fab/hymn.hook index a3e3cf110e..1d25829e38 100644 --- a/main/pub/sole/fab/hymn.hook +++ b/main/pub/sole/fab/hymn.hook @@ -50,9 +50,6 @@ div {}, lines $ -> - termRev = 0 - pressed = [] - deltim = null met = $('
').text('m').css(display: 'none').appendTo(term).width() subs = "" @@ -108,16 +105,10 @@ urb.bind "/sole", {wire:"/"}, (err,d)-> if err then console.log err else if d.data then peer d.data - - sendAction = (data)-> - urb.send {mark: 'sole-action', data}, (e,res)-> - if res.status isnt 200 then $('#err')[0].innerText = res.data.mess - - doEdit = (ted)-> - det = buffer.transmit ted - sync ted - sendAction {det} + + pressed = [] + deltim = null #later = (data)-> # if data # pressed.push data @@ -129,6 +120,16 @@ # pressed = [] # ), 500 + sendAction = (data)-> + urb.send {mark: 'sole-action', data}, (e,res)-> + if res.status isnt 200 then $('#err')[0].innerText = res.data.mess + + doEdit = (ted)-> + det = buffer.transmit ted + sync ted + sendAction {det} + + Mousetrap.handleKey = (char, mod, e)-> norm = { capslock: 'caps'