Skip to Content
author's profile photo Former Member
Former Member

Javascript to disable list keyboard key

How can I disable the effect of the list key using Javascript?, I want to block this key in a BSP application.

Thanks in advance,

Ruben.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 18, 2005 at 07:41 AM

    Found no "list" key on keyboard. In anycase not in English.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2005 at 12:02 PM

    I think you mean the spacebar key. Hope this help:

    <head>
    ...
    <script>
    function Aonkeypress(){
    	var nav4 = window.Event ? true : false;
    	var key = nav4 ? event.witch : event.keyCode; 
    
    	if( key == 32 )
    		return false;
    	return true;
    }
    document.onkeypress=Aonkeypress
    </script>
    ...
    </head>
    

    best regards,

    Antonio.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2005 at 12:08 PM

    I want to disable the key that displays context menus. The key is right between Windows key and Ctrl key.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.