Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Suggest forum.snitz.com Content
 Idea: disable Escape-key in textarea?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hbuds
Starting Member

2 Posts

Posted - 14 November 2002 :  11:31:13  Show Profile
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  Show Profile  Visit HuwR's Homepage
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.
Go to Top of Page

hbuds
Starting Member

2 Posts

Posted - 15 November 2002 :  01:26:01  Show Profile
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.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 November 2002 :  04:46:20  Show Profile  Visit HuwR's Homepage
That is what the escape key is supposed to do. Treat your users with a bit more common sense
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 15 November 2002 :  04:57:13  Show Profile  Visit Kat's Homepage
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
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 15 November 2002 :  12:34:52  Show Profile
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 November 2002 :  12:43:45  Show Profile  Visit HuwR's Homepage
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
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 15 November 2002 :  15:08:05  Show Profile
Thanks, HuwR.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.59 seconds. Powered By: Snitz Forums 2000 Version 3.4.07