This certainly frustrates me, though I have now learn'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> <<a href="mailto:newz@bearfruit.org">newz@bearfruit.org</a>> 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'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'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> <<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>><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>
> I think I understand: In some apps, the right-click contextual menu<br>> appears with its first item selected by default. If you release the<br>> 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>> This seems contrary to the behavior in some - but not all - other Gnome<br>> apps, where the contextual menu appears with no item selected. In those<br>
> apps, releasing the right mouse button leaves the menu open but doesn't<br>> execute an option.<br>><br>> Even worse, if the menu is near the bottom of the screen, the *last*<br>> item is selected, since the menu appears anchored to the lower-left<br>
> corner instead of the usual upper-left corner. And that doesn't always<br>> seem to be automatically executed on mouse release (contrary to the<br>> first item, which always seems to be executed).<br>><br>
> So you're not ever sure what will happen if you click and release the<br>> right button without moving the mouse: select item 1 + execute, select<br>> item n + execute, select item n + no execute, no item selected + menu<br>
> remains, ...<br><br>Checked with 2.14.x and 2.20.x. Of course, the context menu position<br>depends on it's size and the screen border. Means, if you right-click<br>near the bottom, the context menu will appear "on top" 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... *boggle*<br><br><br>Another "however". This depends on the definition of "click".<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> Ice GTK themes, even on a recent GNOME. The actual difference here<br> appears to be the (top) border of the context menu. A single pixel<br>
*does* make a difference...<br><br><br>> Not sure what causes this inconsistency (GTK+, theme, user error [e.g.<br>> me!]). But I agree, my personal preference would be that no contextual<br>> menu item is ever selected by default (emphasis on personal preference).<br>
><br>> In any case, doesn't seem to be Nautilus-specific. For usability list?<br><br>Usability list, yeah, Cc'ed. And the theme designers headquarters. Maybe<br>even GTK+, though I don't think so.<br><br>
guenther<br><br><br>--<br>char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";<br>main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:<br>(c=*++x); c&128 && (s+=h); if (!(h>>=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> <<a href="mailto:benjamin@sipsolutions.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">benjamin@sipsolutions.net</a>><br>
Date: Jan 30, 2008 2:46 AM<br>To: Karsten Bräckelmann <<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>><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'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> <<a href="mailto:alexl@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">alexl@redhat.com</a>><br>Date: Jan 30, 2008 3:54 AM<br>
To: Karsten Bräckelmann <<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</a>><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> <<a href="mailto:ross@burtonini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ross@burtonini.com</a>><br>
Date: Jan 30, 2008 4:21 AM<br>
To: Alexander Larsson <<a href="mailto:alexl@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">alexl@redhat.com</a>><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 <<a href="mailto:guenther@rudersport.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guenther@rudersport.de</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>For me, the popups are a few pixels away from the pointer. I've just<br>checked this in Nautilus, evolution, gnome-terminal, epiphany and<br>gossip. 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 mail: <a href="mailto:ross@burtonini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ross@burtonini.com</a><br>
jabber: <a href="mailto:ross@burtonini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ross@burtonini.com</a><br>
www: <a href="http://www.burtonini.com./" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.burtonini.com./</a><br> 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>