Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39138
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Arno Welzel <usenet@arnowelzel.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: CTRL use on canvas. |
| Date | Thu, 12 Nov 2020 10:25:29 +0100 |
| Lines | 30 |
| Message-ID | <i14dc8FenijU1@mid.individual.net> (permalink) |
| References | <e008ff78-09a2-4981-b28a-12a635a3140bo@googlegroups.com> <i5tmmkdoda7x$.1ta8cfjytkfzv$.dlg@40tude.net> <344fae3c-3474-487c-828d-1af5e497a32bn@googlegroups.com> <c0f6e2e2-0b22-49b3-8b37-ad7471b63656o@googlegroups.com> <8c094ead-a23a-4757-bc47-63a9dcb75debo@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net prVTTGe3uFrmurkGkzqf5QN3YRnXxZ3Xhm8QJ8rQGP4487sLRU |
| Cancel-Lock | sha1:Uepi7HUvvkGdAMU3vzSG85H+nUE= |
| In-Reply-To | <8c094ead-a23a-4757-bc47-63a9dcb75debo@googlegroups.com> |
| Xref | csiph.com comp.lang.javascript:39138 |
Show key headers only | View raw
Jonas Thörnvall: > Den onsdag 11 november 2020 kl. 20:28:02 UTC+1 skrev Jonas Thörnvall: >> Den onsdag 11 november 2020 kl. 18:17:06 UTC+1 skrev Michael Haufe (TNO): >>> On Wed, 11 Nov 2020 00:30:32 -0800 (PST), Jonas Thörnvall wrote: >>>> I have started a "silly" project trying to simulate some sort of text >>>> editor/command cursor format on canvas. >>>> >>>> Shift seem to work implicity, chosing correct Charcode character, but >>>> CTRL charcode 17 just produce some rectangle symbol. >>> >>> Look at an ASCII table. What did you expect charcode 17 to display? >> >> Ok i was a bit tired this morning so forget that question, but i have a connected question, when i . and ,"echo" dot it correctly tells me keycode 188 and keycode 190. >> >> But what is echoed out is 3/4 and !/4 symbols, i know is is something with i am echoing wrong type of value. >> key = e.keyCode ? e.keyCode : e.which; >> character= String.fromCharCode(key); > > By the way > key = e.keyCode ? e.keyCode : e.which; > Is some heavy monkey grammer who come up with this shit? No, this is called a ternary operator and many languages have this. Also see <https://en.wikipedia.org/wiki/%3F:> -- Arno Welzel https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
CTRL use on canvas. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-11 00:30 -0800
Re: CTRL use on canvas. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-11 00:41 -0800
Re: CTRL use on canvas. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-11 00:45 -0800
Re: CTRL use on canvas. JJ <jj4public@gmail.com> - 2020-11-11 18:15 +0700
Re: CTRL use on canvas. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-11-11 14:03 +0100
Re: CTRL use on canvas. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-11-11 09:16 -0800
Re: CTRL use on canvas. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-11 11:27 -0800
Re: CTRL use on canvas. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-11 11:28 -0800
Re: CTRL use on canvas. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-11-11 11:34 -0800
Re: CTRL use on canvas. Arno Welzel <usenet@arnowelzel.de> - 2020-11-12 10:25 +0100
csiph-web