Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Techniques to prevent accidental press of the Enter key that submits a FORM Date: Fri, 16 Dec 2016 17:54 +0100 Organization: PointedEars Software (PES) Lines: 39 Message-ID: <1547367.X513TT2pbd@PointedEars.de> References: <28167554-422a-4b89-81e9-071e7475e821@googlegroups.com> <2269631.Lt9SDvczpP@PointedEars.de> <1911160.Mh6RI2rZIc@PointedEars.de> <1687944.taCxCBeP46@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1481907241 28789 eJwNxsEBgDAIA8CVGkNCHUdE9h+h3utEw2+G5dBo2Fj4KiaxytPd+VykwCISd/qPtD17VQcPEx0QYw== (16 Dec 2016 16:54:01 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 16 Dec 2016 16:54:01 +0000 (UTC) User-Agent: KNode/4.14.2 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== X-User-ID: eJwNwokRwDAIA7CVSogNjEN59h+h1QlKYdkleLFYk/UWnN6MLntGK9t3XI2aFgzMiTdHaKfSB1z3OY743/4AZfEVmw== X-NNTP-Posting-Host: eJwFwQkBwDAIA0BL4wtBTmnBv4TdhUFw0xHw2Ng8bBkquwpyxpxqvnOZkY+cbVXBtxmvVOcHFNgQvw== Cancel-Lock: sha1:5HQVBfAsYAtPS3ZG8zpMl0WZoFw= X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 12/14/2016 12:00 PM, Thomas 'PointedEars' Lahn wrote: >> KnightStalker wrote: >>> On 12/14/2016 10:19 AM, Thomas 'PointedEars' Lahn wrote: >>>> KnightStalker wrote: >>>> ^^^^^^^^^^^^^ >>>> Who? >>> Just add a space before the Capital S. Now if you don't like my name, >>> just ignore it. >> This is a Usenet newsgroup, not a chat room. Pseudonyms are not >> "cool" here, but ridiculous. I could ignore *you* for this >> impoliteness, and recommend to others to ignore you, but you do not >> want that to happen. So here is your last chance to avoid it. > > Feel free to ignore whom ever you wish and recommend to whom ever you > wish. *plonk* >>> Depending on the ua tested in (firefox for example), tab to the >>> submit button and press (Enter/Return || space) key. Current >>> versions of Google Chrome and Microsoft Edge, no tabbing required. >> If the user had been aware that they could use the Tab key, they >> would not have, before you prevented it, accidentally submitted the >> form using the Return key, would they? > > Nothing was done to prevent the use of any keys. Nonsense. The very point of this thread is to not make the Enter/Return key work by default. Your very code does that with a disabled, hidden submit button. Probably it is not your own code either, but just cargo cult programming. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.