[ 2 posts ]

Hammad

  • Username: aSmartLondoner
  • Joined: Tue May 26, 2009 8:27 am
  • Posts: 39
  • Location: London, UK
  • Twitter: hammadtariq
  • Offline
  • Profile
Tags:

keylistener event in YUI menubar

Post Posted: Wed Jun 24, 2009 6:21 am
+0-
Hello,
Can any one give me an example of yui menu which make use of yui menu bar which is given here http://developer.yahoo.com/yui/menu/#usingmenubar and control it with keylistener. I want to control menu with keyboard like if I press Shift+N to go to google.com. How can I do that? I know there is a keylistener configuration but I have searched a lot and can't find any example making use of that property. If any one can guide me, I will be grateful.

Thanks,

Daniel

  • Joined: Tue Jul 28, 2009 6:26 pm
  • Posts: 1
  • Offline
  • Profile

Re: keylistener event in YUI menubar

Post Posted: Tue Jul 28, 2009 6:29 pm
+0-
I'm also looking for the way. I try to make menu items object.

YCP.ContextMenuItem = {
TreePage : {
File : [
{text : "Rename", onclick:{fn:YCP.Tree.Page.renameNode}},
{text : "Delete", onclick:{fn:YCP.Tree.Page.deleteNode}, keylistener:{keys:69}},

...
But It doesn't listen to keyboard event. :(
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum