Path: csiph.com!aioe.org!.POSTED.wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org!not-for-mail
From: "R.Wieser"
Newsgroups: comp.lang.javascript
Subject: Re: How to check if a key is currently down ...
Date: Fri, 5 Apr 2019 09:23:22 +0200
Organization: Aioe.org NNTP Server
Lines: 30
Message-ID:
References:
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Notice: Filtered by postfilter v. 0.9.2
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
Xref: csiph.com comp.lang.javascript:36315
Peter,
Sorry for the late reply, I got a bit distracted with another project ...
> Maybe store a flag with GM and do your action on the next page if it is
> set
If I can do that (store a flag into GM space which survives page changes)
than I can probably do with the already available catching key-state change
events (or the 'User Script Commands' below).
> That behavior can also be implemented by a simple button anywhere on the
> page
I only realized that after I conceeded that getting a keystate isn't
possible and started looking for other possibilities. Heck, I've already
used a similar method elsewhere (capturing mouse clicks) ...
> The 'User Script Commands' were removed in GM 4.
I'm (still) running 3.17 (on FF 52), and yesterday saw that it indeed does
work. Bummer though, I assumed them to be some kind of page-local hotkeys,
not a Alt-T, G, C, {my key} sequence.
Thanks for the info about it though. Might come in handy elsewhere. :-)
Regards,
Rudy Wieser