Solved

Trapping F10 key in Navigator

Posted on 1998-08-10
2
319 Views
Last Modified: 2012-05-04
I am working on web pages that work with a plug-in (Neuron) to deliver CBT over an intranet.  The CBT within the plug-in uses the F10 key for several interactions.  I am running the CBT within Netscape Navigator (currently v 3.01, but we may soon move to 4.04).  The window is opened from another web page, using the following javascript

     var myDocHref=window.open('LoadCBT.htm', 'neuronwindow','toolbar=no,status=no');

This creates a Netscape window with only the titlebar showing, and the plug-in window in the middle of the page.

The problem is, when the user presses the F10 key, this activates the system menu on the title bar (the little Netscape icon on the left side of the titlebar).  If the user presses F10 again, the plug-in receives it and the CBT can process it.

Is there anyway I can deactivate the system menu on the titlebar?  I know that I can hide the title bar using signed scripts (in Netscape 4.04), but I don't think we can implement that functionality here.  Is there any other way that I can prevent F10 from activating that system menu?

I'm just talking about Netscape Navigator here.  Also, let me know if your solution works in v 3.01, or just in v 4.04.

Thanks.
0
Comment
Question by:agifford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:agifford
ID: 1268055
Edited text of question
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 150 total points
ID: 1268056
MSIE 4 can get the keycode of the key and possibly also the function keys - Netscape 4 can seemingly only report the 'normal' keys and the modifiers (alt-shift-ctrl)

You have no way of capturing the keys in NS 3.x
(if you exclude a crummy check in a text field that has the focus all the time - this sucks and it can also not get the function keys)

Your absolutely best bet is to get it over with and sign the script.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question