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


Groups > comp.lang.javascript > #10103

Re: detect if user can generate key events ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail
Newsgroups comp.lang.javascript
From Peter Billam <peter@www.pjb.com.au>
Subject Re: detect if user can generate key events ?
References <slrnjgo00f.2de.peter@box8.pjb.com.au> <jeh0pu$4uu$1@dont-email.me>
Reply-To contact.html@www.pjb.com.au
User-Agent slrn/pre1.0.0-18 (Linux)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Message-ID <slrnjgo81g.2sa.peter@box8.pjb.com.au> (permalink)
Date 10 Jan 2012 11:25:36 GMT
Lines 40
Organization Unlimited download news at news.astraweb.com
NNTP-Posting-Host 70a561d4.news.astraweb.com
X-Trace DXC=ogjOFK3g?@>J0Z]=gbPP29L?0kYOcDh@:7^o:UA4R?c5Q4`Yco4[6E:]G;2>V^?kW3:7ePC=`481=Z:`@Z2n2A4>oe9cHeEfe44
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:10103

Show key headers only | View raw


On 2012-01-10, Jukka K. Korpela <jkorpela@cs.tut.fi> wrote:
> 2012-01-10 11:08, Peter Billam wrote:
>> I've got this page:
>>    http://www.pjb.com.au/esperanto/eo_en.html:
>> which handles onkeydown events.
>
> I don’t quite see why. It seems to read some input and run a lookup
> on it, then write the match, if any. There does not seem to be any 
> immediate visible effect when the circumflex ^ is used, so I don’t
> see why you don't act on just on Enter and perform string
> manipulation on the input.

I wanted to leave myself the option of reacting to partial lines,
or only to certain characters, and also to learn about kbd events,
to implement an imitation vi etc.

> And if you do the normal thing of using a text input box, 
> users can also use cut and paste.

Agreed.  I'd hoped to be able to handle paste events, but no.
(I also want the previous search results to remain on the
screen as they do, but that's not hard to arrange.)
The command-line version can handle cut and paste and accents,
  http://www.pjb.com.au/esperanto/index.html
and it actually gets more downloads than the html version gets hits.

> The page uses one of the old methods of writing Esperanto in Ascii
> only, the “x notation.” As implemented, the logic of the page means
> that even though I can normally perfectly well write Esperanto as
> such, using e.g.  c with circumflex (ĉ), on this page it won’t work,

Indeed, and it's a big issue with cut and paste where you
don't have the freedom to type.  Of course if the page handled
diacriticals I'd still want to respect the x notation;
it's very ergonomic on non-esperanto keyboards.

Regards,  Peter

-- 
Peter Billam    www.pjb.com.au    www.pjb.com.au/comp/contact.html

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


Thread

detect if user can generate key events ? Peter Billam <peter@www.pjb.com.au> - 2012-01-10 09:08 +0000
  Re: detect if user can generate key events ? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-01-10 11:35 +0200
    Re: detect if user can generate key events ? Peter Billam <peter@www.pjb.com.au> - 2012-01-10 11:25 +0000
      Re: detect if user can generate key events ? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-01-10 13:47 +0200
    Re: detect if user can generate key events ? Swifty <steve.j.swift@gmail.com> - 2012-01-10 12:33 +0000
      Re: detect if user can generate key events ? Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-10 05:30 -0800

csiph-web