5 ms·
Super cool, thanks a lot! Now if only we could push return to enter instead of having to use the mouse ...
by albertcardona 19y ago
Super cool, thanks a lot! Now if only we could push return to enter instead of having to use the mouse ...
- byrneseyeview 19y agoTab-return?
- nostrademons 19y agoYeah, that's what I do. I couldn't figure out how to get accesskeys to take "return" as the key. If anyone knows a better solution, I can change it.
- tlrobinson 19y agodocument.getElementById("input").addEventListener("keypress", function(e) { e = e || window.event; if (e.keyCode == 13) { $('#eval').click(); e.target.value = ""; }}, false); ...or the equivalent in jQuery. Not IE compatible (no, I don't care) 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);})();