3 Replies Latest reply: Jan 25, 2011 1:42 PM by TexasApexDeveloper RSS

    Check if Capslock is activated

    828151
      Hello,

      I was wondering if there is anyway to inform that the Capslock key is activated, is it possible?

      Any ideas?

      Thanks,
      Alan.
        • 1. Re: Check if Capslock is activated
          jariola
          Hi,

          I found this jQuery plugin
          http://plugins.jquery.com/plugin-tags/caps-lock



          Regards,
          Jari
          • 2. Re: Check if Capslock is activated
            828151
            Hello Jari,

            Thanks for replying, the code that you mentioned works only for a field or to hole application?? is it possible to use with:
             
            $(document).caps(function(caps){
                if(caps){
                    alert('Your caps lock is on!');
                }else{
                    alert('My caps lock is off!');
                }
            });
            I tried, but doens't worked...

            Cheers,

            Alan.
            • 3. Re: Check if Capslock is activated
              TexasApexDeveloper
              No way for the browser to determine if capslock is on through javascript UNTIL you enter a letter.. You could look for some sort of java addon..

              Thank you,

              Tony Miller
              Webster, TX

              What if you really were stalking a paranoid schizophrenic... Would they know?

              If this question is answered, please mark the thread as closed and assign points where earned..