Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Arc Ported to JavaScript. Parent comment
document.getElementById("input").addEventListener("keypress", function(e) { e = e || window.event; if (e.keyCode == 13) { $('#eval').click(); e.target.value = ""; }}, false);
In the meantime, here's a bookmarklet you can use to "patch" it:
javascript:(function(){document.getElementById("input").addEventListener("keypress", function(e) { e = e || window.event; if (e.keyCode == 13) { $('#eval').click(); e.target.value = ""; }}, false);})();
There are no comments on this comment yet.
In the meantime, here's a bookmarklet you can use to "patch" it:
javascript:(function(){document.getElementById("input").addEventListener("keypress", function(e) { e = e || window.event; if (e.keyCode == 13) { $('#eval').click(); e.target.value = ""; }}, false);})();