I have an event stream for when ENTER is presssed
var enter =
$('#text')
.asEventStream('keydown')
.filter(function(e){
return e.keyCode === 13
})
This works great. But, I want to only take action if ENTER is pressed and another property - textMatches - is true. How do I do this? I tried
var advance = textMatches.and(enter)
But it didn't work.