After a lot of debugging I found the reason why I cannot type any text into my form fields.
I have a jQuery function to catch some keys that I use in my JS app.
$(document).bind 'keyup keydown', (e) ->
shifted = e.shiftKey
cntrled = e.metaKey || e.ctrlKey
Javascript:
$(document).bind('keyup keydown', function(e) {
shifted = e.shiftKey;
return cntrled = e.metaKey || e.ctrlKey;
});
Why can I not type into form fields with that in place?
As soon as I remove that part I can type again.
You are returning the value cntrled which cancels the event.
In Coffeescript the last value in your function will be returned.
Return true as the last line in the handler.
JavaScript equivalent of what you are doing now…
Change it into…