emberjs/ember.js — Issue #537: View keyDown action bind preventing default
Author: beefsack
Created: 2012-02-24 16:24:15+00:00
State: open

Version: 0.9.5
Works in: 0.9.4

I have a textarea in my Handlebars template that binds to the keyDown action declared as following:

My handler is as follows (coffeescript).

send_chat_check_enter: (view, event) ->
@send_chat_from_form() if event.keyCode is 13

In the handler, I had to add view as the first parameter, as it seems the signature of the handlers have changed since 0.9.4. The input never appears in the textarea, even if the handler is empty or only returns true. The textarea starts working again after removing the bind or by reverting to 0.9.4.