<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Twitter Enhancements: Press Enter to Send Update | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/30419</link>
    <description>Recent comments on userscript: Twitter Enhancements: Press Enter to Send Update</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Three things..., replied by Ziru</title>
      <description>&lt;p&gt;Hi DaveJamesMiller,&lt;/p&gt;

&lt;p&gt;Thanks for the fixes.  I've incorporated those into the latest version.&lt;/p&gt;

&lt;p&gt;Ziru&lt;/p&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:16:29 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:25090:113157</guid>
      <author>Ziru</author>
      <link>http://userscripts.org/posts/113157</link>
    </item>
    <item>
      <title>Three things..., replied by DaveJamesMiller</title>
      <description>&lt;p&gt;Useful script - with a few very minor issues:&lt;/p&gt;

&lt;p&gt;1. The new line is inserted as well as the form being submitted
&lt;br /&gt;2. There is no way to put a new line in on the rare occasions you want to
&lt;br /&gt;3. If you press enter straight away, you get a blank screen&lt;/p&gt;

&lt;p&gt;I believe this fixes all of these:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var statusElem = document.getElementById('status');
statusElem.addEventListener('keypress', function(evt) {
  if(evt.keyCode == evt.DOM_VK_RETURN &amp;amp;&amp;amp; !evt.shiftKey) { // Hold shift to put in a new line
    if(statusElem.value != &quot;&quot;) // Refuse to submit empty text
      statusElem.form.submit();
    evt.preventDefault(); // Don't insert new line
  }
}, false);&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 18 Apr 2009 17:52:47 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:25090:112115</guid>
      <author>DaveJamesMiller</author>
      <link>http://userscripts.org/posts/112115</link>
    </item>
  </channel>
</rss>
