Author |
Topic |
|
hbuds
Starting Member
2 Posts |
Posted - 14 November 2002 : 11:31:13
|
Hi!
It would be nice to disable the Escape-key when typing in a textarea (like in here).. I found that some ppl hit the escape button when they typed a wrong line which results in an completely empty textarea and all good text is gone as well. This is quite frustrating.
It's quite easy to disable the escape key:
function noesc() { return !(window.event && window.event.keyCode == 27); } Then add for the textarea: onkeydown="return noesc()"
Good idea? |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 14 November 2002 : 12:22:02
|
just don't press escape, that is the normal behaviour of the escape key in web and mormal windows. I would suggest learning how to use your OS before disabling its basic functionality.
Thats like removing your brake pedals from the car because someone might occasionally step on them and stop the car. |
|
|
hbuds
Starting Member
2 Posts |
Posted - 15 November 2002 : 01:26:01
|
I cannot agree on this one. Using your example, when someone might hit the brake by accident the car would not only stop, but it will take you back to the beginning of your journey. That is what escape inside a textarea does.. everything you did it erased. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 15 November 2002 : 04:46:20
|
That is what the escape key is supposed to do. Treat your users with a bit more common sense |
|
|
Kat
Advanced Member
United Kingdom
3065 Posts |
Posted - 15 November 2002 : 04:57:13
|
Yeah - the logical thing to do is to hit the delete key when you type something wrong - not escape. You cannot remove basic functionality for a handful of users as you will cause frustration to those trying to use it correctly.
Don't get me wrong - I fully advocate a high level of usability but I am with HuwR on this one. |
KatsKorner
Installation Help | Snitz Mods | Forum Hosting
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 15 November 2002 : 12:34:52
|
Well, it's an easy change to make to your forum. Maybe take it to the MOD forum and create a MOD for this functionality. I hardly ever hit the escape key and didn't even know it cleared a textarea
|
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 15 November 2002 : 12:43:45
|
the esc key works the same as reset form button, it returns a control to the state it was before you started to edit it, so if it was empty, hitting escape will clear it, if it contains text already, it will just reverse your changes |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 15 November 2002 : 15:08:05
|
Thanks, HuwR. |
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
|
Topic |
|