Welcome Guest Search | Active Topics | Sign In | Register

EnableKeyboardNavigation Options
Cherif
Posted: Monday, March 9, 2009 7:19:28 PM
Rank: Newbie
Groups: Member

Joined: 3/9/2009
Posts: 7
I set EnableKeyboardNavigation to true for MenuStrip control but it still does not take keyboard navigation.

The following support text did not help:
There are. You will want to go over this topic first to get an idea of how to use our client side interface:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

Once you are familiar with how our client side JavaScript API works, you will need to call this function:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.MenuItem.expandSubMenu.html

The final code would be something like this:


Code: JavaScripteo_GetObject("Menu1").getTopGroup().getItemByIndex(0).expandSubMenu();



The menu is navigatable by keyboards when you set this property to true:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.WebControl.EnableKeyboardNavigation.html

You may want to take a look of the reference section of the document if you have any more questions. Most information you are looking for should already be there.
eo_support
Posted: Monday, March 9, 2009 7:33:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please take a look of this sample and see if it works for you:

http://demo.essentialobjects.com/Default.aspx?path=Menu\_i1\_i0

Note the sample uses Ctrl + Shift + F to activate the menu, however you may have some other browser plug-ins that intercept that key combination, when that is the case, the combination will not work. For example, if you have Google ToolBar installed, pressing Ctrl + Shift + F will activate Google search bar in the bottom of the page instead of activating the menu. Even if the hot key does not work, you can still activate the menu and then use arrow key to navigate the menu.

I am not sure why you copied some text from another post that has nothing to do with the question that you are asking and then claim that it did not help. The text you copied is for another user who asks about how to expand the menu on the client side with JavaScript code, which is totally unrelated to your question.

Thanks
Cherif
Posted: Monday, March 9, 2009 7:52:35 PM
Rank: Newbie
Groups: Member

Joined: 3/9/2009
Posts: 7


Thanks, setting the Shortcut property solved my navigation issue for the menu control.

I have same issue with a TabStrip control and it's not working even though I set a EnableKeyboardNavigation to true with a different shortcut value.

Please advice

eo_support wrote:
Hi,

Please take a look of this sample and see if it works for you:

http://demo.essentialobjects.com/Default.aspx?path=Menu\_i1\_i0

Note the sample uses Ctrl + Shift + F to activate the menu, however you may have some other browser plug-ins that intercept that key combination, when that is the case, the combination will not work. For example, if you have Google ToolBar installed, pressing Ctrl + Shift + F will activate Google search bar in the bottom of the page instead of activating the menu. Even if the hot key does not work, you can still activate the menu and then use arrow key to navigate the menu.

I am not sure why you copied some text from another post that has nothing to do with the question that you are asking and then claim that it did not help. The text you copied is for another user who asks about how to expand the menu on the client side with JavaScript code, which is totally unrelated to your question.

Thanks
eo_support
Posted: Monday, March 9, 2009 8:06:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

TabStrip does not handle ShortCut set on the TabStrip itself, nor does it handle arrow keys because it never retains input focus. You can set ShortCut for each individual TabItem so that when you press the short cut, the corresponding tab item will be selected.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.