Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36166
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Peter Büttner <not_for_mail_peb@gmx.net> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to check if a key is currently down ... |
| Date | Mon, 25 Mar 2019 18:46:17 +0100 |
| Lines | 33 |
| Message-ID | <gfsif9F4cf9U1@mid.individual.net> (permalink) |
| References | <q79vlh$1li$1@gioia.aioe.org> |
| Reply-To | peter.buettner@gmx.net |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net mttRz2+eh7PRrygyJWgKtgFIkrhRZdK594u4Ea93A6ng9Ista1 |
| Cancel-Lock | sha1:q1F0GMaptOugVJvFEZfWjXa7PQ0= |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
| In-Reply-To | <q79vlh$1li$1@gioia.aioe.org> |
| Xref | csiph.com comp.lang.javascript:36166 |
Show key headers only | View raw
Am 25.03.2019 08:23, schrieb R.Wieser:
> ... without having to capture it thru an event first.
>
> The reason I'm stating it like that is because I have the need to see if a
> certain key (preferrably the shift, alt, ctrl or similar) is down /when a
> webpage is being loaded/.
Like the idea.
But AFAIK all/most browsers use those modifiers to open a bookmark/link
in a new window or tab, so your idea may interfere with the default
behavior.
> For the off chance that it might make a difference: The script is actually a
> GreaseMonkey one. I want to alter its behaviour (scrubbing less or more)
> depending on certain keys being pressed while loading a new page.
I do it this way:
store a bookmark with a hash:
example.org/foo/bar#MarkerToDoThings
and the GM Script looks for that.
One may store more options here.
Since nowadays some website also use the hash to store data
this may interfere with the pages original scripts. But they
are not send by the browser to the server.
Another approach maybe the useractions of GM.
Peter
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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