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


Groups > comp.lang.javascript > #29943

Re: Wait on keyboard

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript
Subject Re: Wait on keyboard
Date 2016-03-12 15:52 +0000
Message-ID <120320161552438741%timstreater@greenbee.net> (permalink)
References (6 earlier) <167d4204-d421-4852-ab16-b6659b83cfac@googlegroups.com> <re58ebtpclu82quc4thn4uglg7jp4ps48o@4ax.com> <cfd163f7-dc45-4cf1-b8cb-9f1b0b6c4993@googlegroups.com> <XnsA5C99C64E1C14eejj99@194.109.6.166> <35b92d72-d65a-4866-b060-7b448d24d4f1@googlegroups.com>

Show all headers | View raw


In article <35b92d72-d65a-4866-b060-7b448d24d4f1@googlegroups.com>,
<jonas.thornvall@gmail.com> wrote:

>And you could achieve alot of things like maka a real good texteditor or any
>other UI application that use keypress shortcuts to perform actions by calling
>functions. It would be quite another language and allow for different
>approaches creating UI. Personally i like click drag drop but that doesn't
>mean that keyboard driven eventhandling should be prohibited or be done with
>such agony of labour that people simply skip or refuse to use it in their
>applications.

Why are you having such difficulty with this? It's really very simple:

1) Attach onkeypress to something. In my example I attached it to the
<body>. One statement.

2) Decide what to do with the keypress. One statement.


What's so hard about two statements?

You method of doing:

  wait(keypress)

means your application STOPS while waiting for a key to be pressed.
What is the use of that?

-- 
New Socialism consists essentially in being seen to have your heart in 
the right place whilst your head is in the clouds and your hand is in 
someone else's pocket.

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


Thread

Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 02:30 -0800
  Re: Wait on keyboard Tim Streater <timstreater@greenbee.net> - 2016-03-11 10:37 +0000
  Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 02:50 -0800
    Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 03:13 -0800
      Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 03:23 -0800
        Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 03:32 -0800
          Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 03:39 -0800
            Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 04:41 -0800
              Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 05:00 -0800
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 05:43 -0800
      Re: Wait on keyboard Tim Streater <timstreater@greenbee.net> - 2016-03-11 12:13 +0000
  Re: Wait on keyboard "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-03-11 21:52 +0800
    Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 07:29 -0800
  Re: Wait on keyboard Stefan Weiss <krewecherl@gmail.com> - 2016-03-11 17:00 +0100
    Re: Wait on keyboard Stefan Weiss <krewecherl@gmail.com> - 2016-03-11 17:11 +0100
      Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 08:32 -0800
        Re: Wait on keyboard Stefan Weiss <krewecherl@gmail.com> - 2016-03-11 20:20 +0100
      Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 08:55 -0800
        Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-11 16:30 -0300
          Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 11:46 -0800
            Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 12:22 -0800
              Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-11 17:25 -0300
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 12:32 -0800
                Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-11 17:42 -0300
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 12:52 -0800
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-11 12:47 -0800
                Re: Wait on keyboard "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-03-11 18:39 -0800
              Re: Wait on keyboard "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-03-11 18:37 -0800
              Re: Wait on keyboard John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-12 13:16 +0000
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 05:57 -0800
                Re: Wait on keyboard John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-13 10:31 +0000
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-13 05:55 -0700
                Re: Wait on keyboard "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-13 17:19 +0100
                Re: Wait on keyboard Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-13 13:01 -0700
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-13 15:19 -0700
                Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-13 20:08 -0300
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-13 21:45 -0700
                Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-14 01:50 -0300
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-13 22:39 -0700
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-13 22:46 -0700
                Re: Wait on keyboard Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-14 11:54 -0700
                Re: Wait on keyboard Tim Streater <timstreater@greenbee.net> - 2016-03-14 08:31 +0000
                Re: Wait on keyboard John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-14 10:43 +0000
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 06:04 -0800
                Re: Wait on keyboard "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-12 15:22 +0100
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 07:46 -0800
                Re: Wait on keyboard Tim Streater <timstreater@greenbee.net> - 2016-03-12 15:52 +0000
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 09:25 -0800
                Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-12 20:16 -0300
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 15:57 -0800
                Re: Wait on keyboard Aleksandro <aleksandro@gmx.com> - 2016-03-12 21:07 -0300
                Re: Wait on keyboard Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-12 21:27 -0800
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-13 03:08 -0700
                Re: Wait on keyboard "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-12 23:30 +0100
                Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 06:15 -0800
            Re: Wait on keyboard "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-03-11 18:33 -0800
              Re: Wait on keyboard jonas.thornvall@gmail.com - 2016-03-12 03:01 -0800
    Re: Wait on keyboard "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-03-11 18:30 -0800
    Re: Wait on keyboard Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-12 04:44 +0100
      Re: Wait on keyboard Stefan Weiss <krewecherl@gmail.com> - 2016-03-12 11:21 +0100
        Re: Wait on keyboard Stefan Weiss <krewecherl@gmail.com> - 2016-03-12 11:27 +0100
        Re: Wait on keyboard Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-12 14:44 +0100
    Re: Wait on keyboard "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-03-14 18:58 +0800

csiph-web