Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    what is the hotkey for spacebar

    this is what i have so far:

    Code:
    1 = 49
    2 = 50
    3 = 51
    4 = 52
    5 = 53
    6 = 54
    7 = 55
    8 = 56
    9 = 57
    
    
    a = 97
    b = 98
    c = 99
    d = 100
    e = 101
    f = 102
    g = 103
    h = 104
    I = 105
    J = 106
    K = 107
    L = 108
    M = 109 
    N = 110
    O = 111
    P = 112
    Q = 113
    R = 114
    S = 115
    T = 116
    U = 117
    V = 118
    W = 119
    X = 120
    Y = 121
    Z = 122
    
    Left arrow = 37
    Up arrow = 38
    Right arrow = 39
    Down arrow = 40
    
    Enter = 13

    what is the hotkey for right click and space bar?? if there isnt one then tell me because i dont no half of what im going to use them for, but it is good to know
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    M_Mk

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Find out for yourself

    Code:
    <script type="text/javascript"> 
     <!--// 
        function handleKeyPress(evt) {  
         var nbr;  
          if(window.Event){ nbr=evt.which };  
          else{ nbr=event.keyCode };  
          alert(nbr);
        } document.onkeydown = handleKeyPress;
         
     // --> 
    </script>

  • #3
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oooo secritive, cool, thanks
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    M_Mk

  • #4
    Regular Coder
    Join Date
    Apr 2003
    Location
    Atlanta, GA
    Posts
    487
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.10mar2001.com/work/keyCodes.html

    Lists case-sensitive values for keypress and for key down/up (they share values), noting which keys are not registered in IE.

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    Ume, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Mozilla DOM Samples: <http://cgi.din.or.jp/~hagi3/JavaScri...t.cgi?fmt=html>

    Go to the KeyEvent testing page. It's a general testing page for this type of events.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #6
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks i got it now
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    M_Mk


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •