You can usually use Kefir.fromEvents , but in your case when Mousetrap.js is not connected using the on|off methods, instead you can just use Kefir.pool ( Kefir.emitter deprecated) and run kefir in Mousetrap callbacks. I modified your code to demonstrate the use of Kefir.pool in Mousetrap callbacks: http://jsfiddle.net/be9200kh/
Basically you do
var pool = Kefir.pool(); pool.plug(Kefir.constant(1)); pool.map(...).filter(etc)
Good luck
Greg edwards
source share