This certainly frustrates me, though I have now learn&#39;t to expect it in places where it happens, it is a very annoying problem and a massive usability bug for the majority of people who do not hold thier mouse button down when browsing menus.<br>
<br><div><span class="gmail_quote">On 30/01/2008, <b class="gmail_sendername">Matthew Nuzum</b> &lt;<a href="mailto:newz@bearfruit.org">newz@bearfruit.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi gang, since the discussion is on themeing, I thought I&#39;d point out this very hard-to-spot bug that might bear some consideration as we work towards the ubuntu theme.<br><br>Basically, if the border around the context menu isn&#39;t correct (at least 1px it seems) then when you right click somewhere the first item in the menu is automatically selected which frustrates some users apparently.<br>

<br><div class="gmail_quote"><span style="font-size: large; font-weight: bold;">Forwarded conversation</span><br>Subject: <b class="gmail_sendername">Re: [Usability] few things</b><br>------------------------<br><br><span><font color="#000000">From: <b>Karsten Bräckelmann</b> &lt;<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>&gt;<br>

Date: Jan 29, 2008 6:31 PM<br>To: <a href="mailto:nautilus-list@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nautilus-list@gnome.org</a><br>Cc: <a href="mailto:usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">usability@gnome.org</a><br>
</font><br><br></span>On Tue, 2008-01-29 at 12:23 +0100, John Keller wrote:<br>
&gt; I think I understand: In some apps, the right-click contextual menu<br>&gt; appears with its first item selected by default. If you release the<br>&gt; right button, the first item is chosen.<br><br>Wow. Never noticed this before. More on that later... Just checked with<br>

the Desktop, and this indeed is the case for Nautilus.<br><br>&gt; This seems contrary to the behavior in some - but not all - other Gnome<br>&gt; apps, where the contextual menu appears with no item selected. In those<br>

&gt; apps, releasing the right mouse button leaves the menu open but doesn&#39;t<br>&gt; execute an option.<br>&gt;<br>&gt; Even worse, if the menu is near the bottom of the screen, the *last*<br>&gt; item is selected, since the menu appears anchored to the lower-left<br>

&gt; corner instead of the usual upper-left corner. And that doesn&#39;t always<br>&gt; seem to be automatically executed on mouse release (contrary to the<br>&gt; first item, which always seems to be executed).<br>&gt;<br>

&gt; So you&#39;re not ever sure what will happen if you click and release the<br>&gt; right button without moving the mouse: select item 1 + execute, select<br>&gt; item n + execute, select item n + no execute, no item selected + menu<br>

&gt; remains, ...<br><br>Checked with 2.14.x and 2.20.x. Of course, the context menu position<br>depends on it&#39;s size and the screen border. Means, if you right-click<br>near the bottom, the context menu will appear &quot;on top&quot; of the mouse<br>

pointer. This is consistent for both versions.<br><br>However, with 2.14.x, there is *no* context menu item selected after the<br>right click. With 2.20.x, there is... &nbsp;*boggle*<br><br><br>Another &quot;however&quot;. This depends on the definition of &quot;click&quot;.<br>

<br>For a *click* (read: hit the mouse button and get your finger off of<br>that button), the context menu stays on screen -- waiting for the user<br>to select an item and activate it by a click. This is the case for both<br>

GNOME versions.<br><br>For a *click-and-hold* (read: half a second or thereabout), the context<br>menu does *not* stay on screen but disappear after finally releasing the<br>mouse button. Again, this is the case for both GNOME versions. [1]<br>

<br>Nothing changed. So far. The *difference* is, that with recent GNOME,<br>there is an automatically selected item. Which, in the latter case of<br>click-and-hold, is activated on releasing the mouse button...<br><br><br>

[1] GAR, just found out, that this is not true with the Simple and Thin<br> &nbsp; &nbsp;Ice GTK themes, even on a recent GNOME. The actual difference here<br> &nbsp; &nbsp;appears to be the (top) border of the context menu. A single pixel<br>

 &nbsp; &nbsp;*does* make a difference...<br><br><br>&gt; Not sure what causes this inconsistency (GTK+, theme, user error [e.g.<br>&gt; me!]). But I agree, my personal preference would be that no contextual<br>&gt; menu item is ever selected by default (emphasis on personal preference).<br>

&gt;<br>&gt; In any case, doesn&#39;t seem to be Nautilus-specific. For usability list?<br><br>Usability list, yeah, Cc&#39;ed. And the theme designers headquarters. Maybe<br>even GTK+, though I don&#39;t think so.<br><br>

 &nbsp;guenther<br><br><br>--<br>char *t=&quot;\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4&quot;;<br>main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i&lt;l;i++){ i%8? c&lt;&lt;=1:<br>(c=*++x); c&amp;128 &amp;&amp; (s+=h); if (!(h&gt;&gt;=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}<br>

<br>_______________________________________________<br>Usability mailing list<br><a href="mailto:Usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Usability@gnome.org</a><br><a href="http://mail.gnome.org/mailman/listinfo/usability" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.gnome.org/mailman/listinfo/usability</a><br>

----------<br><span><font color="#000000">From: <b>Benjamin Berg</b> &lt;<a href="mailto:benjamin@sipsolutions.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">benjamin@sipsolutions.net</a>&gt;<br>
Date: Jan 30, 2008 2:46 AM<br>To: Karsten Bräckelmann &lt;<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>&gt;<br>
Cc: <a href="mailto:usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">usability@gnome.org</a>, <a href="mailto:nautilus-list@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nautilus-list@gnome.org</a><br>
</font><br><br></span>[SNIP]<br>What changed is the GTK+ theme, which does today sets the thickness of<br>
the menu to 0px. This means that the menu items goes right to the edge<br>of the menu.<br>I think that the best best solution will be to change the theme so that<br>the thickness is not 0px (1px for at least the x or y direction). I&#39;ll<br>

need to check what exactly needs to be done to fix this on the theme<br>side, or whether a design change may be necessary.<br><font color="#888888"><br>Benjamin<br></font><br>_______________________________________________<br>

Usability mailing list<br><a href="mailto:Usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Usability@gnome.org</a><br><a href="http://mail.gnome.org/mailman/listinfo/usability" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.gnome.org/mailman/listinfo/usability</a><br>

<br>----------<br><span><font color="#000000">From: <b>Alexander Larsson</b> &lt;<a href="mailto:alexl@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">alexl@redhat.com</a>&gt;<br>Date: Jan 30, 2008 3:54 AM<br>
To: Karsten Bräckelmann &lt;<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>&gt;<br>
Cc: <a href="mailto:usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">usability@gnome.org</a>, <a href="mailto:nautilus-list@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nautilus-list@gnome.org</a><br>
</font><br><br></span>Menus are popped up with gtk_menu_popup() which takes a callback<br>
function that lets the app position the menu wherever it wants. However,<br>the default one (that most apps use) puts the menu such that its where<br>the mouse pointer is (making sure the whole menu is visible if its near<br>

a screen edge). However, doing this means the mouse pointer will be over<br>the first (or last) menu item and thus it will be selected when you<br>release.<br><br>Maybe gtk+ should be changed to move the menu a few pixels away from the<br>

cursor.<br><div><div></div></div>----------<br><span><font color="#000000">From: <b>Ross Burton</b> &lt;<a href="mailto:ross@burtonini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ross@burtonini.com</a>&gt;<br>
Date: Jan 30, 2008 4:21 AM<br>
To: Alexander Larsson &lt;<a href="mailto:alexl@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">alexl@redhat.com</a>&gt;<br>Cc: <a href="mailto:usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">usability@gnome.org</a>, Karsten Bräckelmann &lt;<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>&gt;, <a href="mailto:nautilus-list@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nautilus-list@gnome.org</a><br>

</font><br><br></span>For me, the popups are a few pixels away from the pointer. &nbsp;I&#39;ve just<br>checked this in Nautilus, evolution, gnome-terminal, epiphany and<br>gossip. &nbsp;The popup menu corner is positioned at the cursor, but there is<br>

a few pixels of padding around the menu itself.<br><br>Ross<br><font color="#888888">--<br>Ross Burton &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail: <a href="mailto:ross@burtonini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ross@burtonini.com</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;jabber: <a href="mailto:ross@burtonini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ross@burtonini.com</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; www: <a href="http://www.burtonini.com./" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.burtonini.com./</a><br>&nbsp;PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF<br>
<br></font><br>_______________________________________________<br>
Usability mailing list<br><a href="mailto:Usability@gnome.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Usability@gnome.org</a><br><a href="http://mail.gnome.org/mailman/listinfo/usability" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.gnome.org/mailman/listinfo/usability</a><br>

<br></div><br><br clear="all"><br>-- <br>Matthew Nuzum<br>newz2000 on freenode
<br>--<br>ubuntu-art mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ubuntu-art@lists.ubuntu.com">ubuntu-art@lists.ubuntu.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-art" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-art</a><br>
<br><br clear="all"></blockquote></div><br>