[jquery-ui] r3430 committed - menu: hide subsubmenus on keyboard-cursor-left

4 views
Skip to first unread message

codesite...@google.com

unread,
Nov 9, 2009, 11:25:26 AM11/9/09
to jquery...@googlegroups.com
Revision: 3430
Author: joern.zaefferer
Date: Mon Nov 9 08:24:40 2009
Log: menu: hide subsubmenus on keyboard-cursor-left
http://code.google.com/p/jquery-ui/source/detail?r=3430

Modified:
/branches/dev/tests/visual/menu/nested.html

=======================================
--- /branches/dev/tests/visual/menu/nested.html Mon Nov 9 05:11:21 2009
+++ /branches/dev/tests/visual/menu/nested.html Mon Nov 9 08:24:40 2009
@@ -42,6 +42,7 @@
},

up: function() {
+ this.hideDown();
if (!this.active.data("menuparent"))
return;
this.active.menu("deactivate");

Jörn Zaefferer

unread,
Nov 9, 2009, 11:31:45 AM11/9/09
to jquery...@googlegroups.com
Todd, this fixes the obvious issue of submenus sticking open when moving focus back up. Please give it a try - we can still replicate the existing OS behaviour, but maybe we also find ways to improve it.

Jörn

Todd Parker

unread,
Nov 9, 2009, 11:49:58 AM11/9/09
to jquery...@googlegroups.com
This is an improvement that works with your current behavior of showing the child menu for a focused parent node when using the keyboard. It's not the same behavior as an OS menu (the child menu would hide on the 1st left click instead of staying open) but you'd need to implement the completely separate keyboard/mouse behavior I described below before that would work. 


todd.parker  .: .   filament group inc.  
102 south street #3 boston, ma 02111  

phone + 617.482.7120 
fax     + 617.687.0212
web     + filamentgroup.com

Todd Parker

unread,
Nov 9, 2009, 11:54:22 AM11/9/09
to jquery...@googlegroups.com
Just noticed a bug when using the keyboard in FF3/Mac:
* Click down to focus on Amsterdam, then right to focus on Aberdeen in child menu
* Click left arrow to focus back to Amsterdam, then left again to close child menu
* If you click right arrow, the child menu won't re-open unless you navigate away then back again



todd.parker  .: .   filament group inc.  
102 south street #3 boston, ma 02111  

phone + 617.482.7120 
fax     + 617.687.0212
web     + filamentgroup.com


On Nov 9, 2009, at 11:31 AM  |  November 9, 2009, Jörn Zaefferer wrote:

Jörn Zaefferer

unread,
Nov 9, 2009, 12:29:41 PM11/9/09
to jquery...@googlegroups.com
Fixed!

I'll look into implementing the OS-style focus behaviour for showing and hiding the submenus. Currently I use a single focus-event, so need to figure out how to make a difference for mouse and keyboard interactions.

Jörn
Reply all
Reply to author
Forward
0 new messages