Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36165

Re: How to check if a key is currently down ...

From "R.Wieser" <address@not.available>
Newsgroups comp.lang.javascript
Subject Re: How to check if a key is currently down ...
Date 2019-03-25 17:21 +0100
Organization Aioe.org NNTP Server
Message-ID <q7av6o$l1r$1@gioia.aioe.org> (permalink)
References <q79vlh$1li$1@gioia.aioe.org> <14dc5q8q828ot$.egjb1au5kypn.dlg@40tude.net>

Show all headers | View raw


JJ,

>> In short, I'm looking for a(n equivalent of) IsKeyCurrentlyDown
>> method.  Does such a beast exist ?
>
> No. Keyboard inputs on client side scripts are only event based.

I was already afraid of it (my googeling didn't show anything). :-(

> There's a way but it's unreliable. It'll heavily depend on the
> keyboard repeat feature

Yep, I think that would it work ... ish.  It would mean that after the 
listner is installed a delay is needed to allow the (repeated) key down 
event to show up and be caught (slowing down every related page opening).

Thanks for the hint. Its something to try.  :-)

Regards,
Rudy Wieser

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to check if a key is currently down ... "R.Wieser" <address@not.available> - 2019-03-25 08:23 +0100
  Re: How to check if a key is currently down ... Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-25 02:33 -0700
    Re: How to check if a key is currently down ... "R.Wieser" <address@not.available> - 2019-03-25 11:48 +0100
  Re: How to check if a key is currently down ... Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-25 02:39 -0700
  Re: How to check if a key is currently down ... Julio Di Egidio <julio@diegidio.name> - 2019-03-25 04:08 -0700
  Re: How to check if a key is currently down ... JJ <jj4public@vfemail.net> - 2019-03-25 19:42 +0700
    Re: How to check if a key is currently down ... "R.Wieser" <address@not.available> - 2019-03-25 17:21 +0100
    Re: How to check if a key is currently down ... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-26 17:09 +0100
      Re: How to check if a key is currently down ... Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-26 16:12 +0000
        Re: How to check if a key is currently down ... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-26 17:35 +0100
          Re: How to check if a key is currently down ... Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-26 16:48 +0000
            Re: How to check if a key is currently down ... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-26 18:29 +0100
              Re: How to check if a key is currently down ... Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-26 17:36 +0000
    Re: How to check if a key is currently down ... Julio Di Egidio <julio@diegidio.name> - 2019-03-26 18:23 -0700
  Re: How to check if a key is currently down ... Peter Büttner <not_for_mail_peb@gmx.net> - 2019-03-25 18:46 +0100
    Re: How to check if a key is currently down ... "R.Wieser" <address@not.available> - 2019-03-25 19:23 +0100
      Re: How to check if a key is currently down ... Peter Büttner <not_for_mail_peb@gmx.net> - 2019-03-27 19:26 +0100
        Re: How to check if a key is currently down ... "R.Wieser" <address@not.available> - 2019-04-05 09:23 +0200
          Re: How to check if a key is currently down ... Peter Büttner <not_for_mail_peb@gmx.net> - 2019-04-07 19:53 +0200

csiph-web