473,394 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Keyboard accessible menu

I want to use the keyboard keys for navigation in menu:

1. Alt+hotkey must activate menu bar
2. Left and right arrow must move between menus,
3. Up and Down arrow move between menu items.
4. Enter key must select menu item.

Basically, I want the menu to behave like ordinary OS menu.

I have searched the whole web but havent find any such sample.

Any sample of such menu script ?

Andrus.
Jul 20 '05 #1
3 3576
On Mon, 14 Jul 2003 14:16:03 +0300, "Andrus Moor"
<no**************@online.ee> wrote:
I want to use the keyboard keys for navigation in menu:

1. Alt+hotkey must activate menu bar
2. Left and right arrow must move between menus,
3. Up and Down arrow move between menu items.
4. Enter key must select menu item.

Basically, I want the menu to behave like ordinary OS menu.


Then leave it to HTML, since the browser is the only thing in the loop
which knows what the ordinary OS menu behaves like.

ACCESSKEY is presumably the piece of HTML you're missing.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

"Jim Ley" <ji*@jibbering.com> wrote in message
news:3f***************@news.cis.dfn.de...
On Mon, 14 Jul 2003 14:16:03 +0300, "Andrus Moor"
<no**************@online.ee> wrote:
I want to use the keyboard keys for navigation in menu:

1. Alt+hotkey must activate menu bar
2. Left and right arrow must move between menus,
3. Up and Down arrow move between menu items.
4. Enter key must select menu item.

Basically, I want the menu to behave like ordinary OS menu.


Then leave it to HTML, since the browser is the only thing in the loop
which knows what the ordinary OS menu behaves like.

ACCESSKEY is presumably the piece of HTML you're missing.


Are there any samples about using keyboard enabled menu? I think I can
implement this only for IE and leave this functionality not implemented in
Mozilla.

I have seen a sample which uses buttons as main menus
http://www.webreference.com/dhtml/column29/6.html it uses accesskey for
main menu bars.

However, I want to select also menu sub-item from keyboard only.
Jul 20 '05 #3
On Tue, 15 Jul 2003 09:53:53 +0300, "Andrus Moor"
<no**************@online.ee> wrote:
Are there any samples about using keyboard enabled menu? I think I can
implement this only for IE and leave this functionality not implemented in
Mozilla.
All good menu systems should work fine with the tab key, that is how
you navigate through menus in my OS...
However, I want to select also menu sub-item from keyboard only.


If you want to do it with other keys you'll have to invent yourself.
It should be possible in IE and Mozilla and many others.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fabian | last post by:
I have a script that intercepts the arrow keys. I also have a dropdown menu using SELECT tags. However, when the dropdown menu has the focus, I do not want the script to intercept the keyboard. How...
2
by: Jan Winnicki | last post by:
i'm making console app, and its main menu looks like this: Main menu Option 1 Option 2 Option 3 user should hit eg 1 on keyboard to choose Option 1 etc
1
by: Sylwia | last post by:
Hi! I'm writing an application that runs in a 'Full screen' mode. I do not want any other windows (as well as the desktop) to be accessible while my application is running. My problem is that...
2
by: Christoph Brüser | last post by:
Hi, in my application I want to react to certain keys when a context menu is showing. So I installed a keyboard hook, but now whenever a key is pressed when the menu is showing, the application...
1
by: WJ | last post by:
How do I set the AccessKey property of a Web Label control on my Asp.Net ? Ex: Lebel Text Name is "Name", I like to see letter "N" underlined so that I can use ALT+N to force the system focus on...
0
by: luc.saffre | last post by:
Hello, I thought that I should ask here for comments on a blog entry that I wrote some weeks ago. I am sure that other people have been thinking about this, but I didn't yet find them. The...
2
by: Swan | last post by:
How can I restrict alt+tab and start menu from keyboard while program executing(VB)?I am posting what I tried-- form.frm Option Explicit Private Sub Form_Load() HookKeyboard End Sub...
8
by: BD | last post by:
How can I duplicate the behavior of the operating system shortcut keys in my application? For example, my windows form has 5 controls (textboxes), the operating system will pickup which control...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.