Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Mnemonics for menus in the applet

Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
here is the code i'm testing...

i set all the mnemonics for the File menu in my applet so that i can invoke it from the keyboard but here is what happens,
1. when i do alt-f it popsup the File menu and by default it automatically selects the first item which is "New" menu in my applet. when i press alt-x it doesn't invoke the Exit option.
when instead of going via the keyboard, if i click on File by Mouse then i can select 'x' from the keyboard to invoke the Exit menu item.
please try it yourself and try to reproduce the error.
another issue i found is,
you see the button in my applet? if i don't put that button in my applet i can't invoke File menu via alt-f!!! I concluded that i had to put "something" in my applet area to make alt-f work so i did put a button. you can try removing the button and see what happens when you press alt-f.
i use IE5.0 , plugin-1.4.1_01.
here is the HTML i have,

This is my favorite tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic