Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30747
| Path | csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Interrogation of Shift-Key state |
| Date | Sun, 26 Jun 2016 01:18:50 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 57 |
| Message-ID | <nkn3go$a48$1@gioia.aioe.org> (permalink) |
| References | <nklv6p$eap$1@gioia.aioe.org> <9a42c75f-3239-4a70-9ce3-7434db0edd00@googlegroups.com> <nkmg47$1b8k$2@gioia.aioe.org> <250620162233132693%timstreater@greenbee.net> |
| NNTP-Posting-Host | MCXi+2dgmFPZdE43NmLC7g.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Enigmail-Draft-Status | N1110 |
| Xref | csiph.com comp.lang.javascript:30747 |
Show key headers only | View raw
On 25.06.2016 23:33, Tim Streater wrote: > In article <nkmg47$1b8k$2@gioia.aioe.org>, Janis Papanagnou > <janis_papanagnou@hotmail.com> wrote: >> >> The information on that link seems to suggest installing event listener for >> keyup/keydown (which I wanted to avoid). > > Why do you want to avoid this? Mainly because I was; (a) expecting that there might be a static method that I didn't knew of, and (b) because it's not really an "event" that I want to obtain, rather a *static* "state" property. Now language concepts may make it impossible to support events (or to support static keyboard states). That is important to know. But my JS skills are very basic so it's necessary to get to know about that. I don't mind using events for that purpose if that's the only possible (or sensible) way to go. Actually my workaround is also based on events. I just wanted to seek an elegant solution or an idiomatic solution. > > What is your software doing when you want to know about the shift key? Briefly; to change the behaviour of the function behind the button. > > You may wish to buy a book on javascript and read about events models > and what happens to events. Once you understand that a bit, by > experimenting, you can decide how to organise your software around what > javascript provides. Yeah, I'm aware of that. But note (as mentioned elsewhere already) that JS is not my primary proficiency. It appeared to me that I am asking only a small, easy, and quickly answerable question in one line of code or so. Despite having coded a couple thousand lines of code in JS I cannot spend the time to learn it from scratch; there are far too many more important other things where my focus lies. Despite what another poster had imputed I searched the net, read specific articles on the issue, and experimented with my actual code (my own ideas and what I found on the net) before and also after placed my "small" question here. > > Also: ignore PointyHead. As you have discovered, he is a smartarse who > thinks that it is clever to write one-word answers to people seeking > help. Thanks for the support! Though I know him already from other groups where I am (and he is, or was) active; he is in many killfiles because of such sociopathic behaviour. It's not that he has not valuable knowledge, but the problem is that he is incapable of (or just pathologically unwilling) respecting people, can't focus on other's views, is seemingly inalterably fixed on his own mindset, which seems to be considered the only valid one. Usually, because of that, it's not worth discussing with him, so I agree. Janis
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-25 14:59 +0200
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-25 17:18 +0200
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-25 19:47 +0200
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-25 20:07 +0200
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 08:51 -0700
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-25 19:47 +0200
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-25 20:17 +0200
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-25 21:16 +0200
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-25 22:33 +0200
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-26 00:49 +0200
Re: Interrogation of Shift-Key state Tim Streater <timstreater@greenbee.net> - 2016-06-26 00:06 +0100
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-26 11:05 +0200
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 12:17 -0700
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 12:23 -0700
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-26 00:34 +0200
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-18 20:29 +0200
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-18 15:17 -0700
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-20 07:23 +0200
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-20 00:03 -0700
Re: Interrogation of Shift-Key state Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-20 11:48 +0200
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-25 13:39 -0700
Re: Interrogation of Shift-Key state "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 12:20 -0700
Re: Interrogation of Shift-Key state Tim Streater <timstreater@greenbee.net> - 2016-06-25 22:33 +0100
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-26 01:18 +0200
Re: Interrogation of Shift-Key state Tim Streater <timstreater@greenbee.net> - 2016-06-26 00:23 +0100
Re: Interrogation of Shift-Key state Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-26 01:37 +0200
Re: Interrogation of Shift-Key state Tim Streater <timstreater@greenbee.net> - 2016-06-26 09:41 +0100
Re: Interrogation of Shift-Key state - workaround Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-26 00:33 +0200
Re: Interrogation of Shift-Key state - workaround "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-06-26 00:53 +0200
Re: Interrogation of Shift-Key state - workaround Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-06-26 01:31 +0200
Re: Interrogation of Shift-Key state - workaround "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 16:52 -0700
Re: Interrogation of Shift-Key state - workaround "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-06-26 01:56 +0200
Re: Interrogation of Shift-Key state - workaround "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-25 16:50 -0700
Re: Interrogation of Shift-Key state Joao Rodrigues <jr@none.com> - 2016-06-25 20:34 -0300
csiph-web