6.0.0-beta1
7/31/25

[#1686] compose window empties when user hits ESC in IE
Summary compose window empties when user hits ESC in IE
Queue IMP
Queue Version RELENG_3
Type Enhancement
State Resolved
Priority 3. High
Owners chuck (at) horde (dot) org
Requester liamr (at) umich (dot) edu
Created 04/04/2005 (7423 days ago)
Due
Updated 04/10/2005 (7417 days ago)
Assigned 04/10/2005 (7417 days ago)
Resolved 04/10/2005 (7417 days ago)
Milestone
Patch No

History
04/10/2005 05:16:42 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
I've committed a slightly more comprehensive solution - it's available 
to all Horde apps in HEAD, and will be in IMP 4.0.4.
04/10/2005 03:39:42 PM Chuck Hagenbuch Priority ⇒ 3. High
 
04/10/2005 03:39:34 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
04/04/2005 06:44:16 PM liamr (at) umich (dot) edu Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ compose window empties when user hits ESC in IE
Queue ⇒ IMP
Reply to this comment
IE will clear the contents of a TEXTAREA / TEXTINPUT field when you 
hit ESC.  The message composition area is a text area, it's annoying 
that typo can wipe away your entire message.  The following changes 
will prevent this behavior in IE.



papiamentu-root# lfdiff -T umweb/webmail-2.0.0.t 
./usr/local/projects/webmail/html-dev/horde/imp/templates/compose/compose.js

3a4,8
function noesc()
{
     return !(window.event && window.event.keyCode == 27);
}
papiamentu-root# lfdiff -T umweb/webmail-2.0.0.t 
./usr/local/projects/webmail/html-dev/horde/imp/templates/compose/compose.inc

412c412

<       <textarea class="composebody" tabindex="<?php echo $tabindex++ 
?>" name="message" id="message" rows="20" cols="<?php echo 
$prefs->getValue('wrap_width') ?>"><?php echo htmlspecialchars($msg) 
?></textarea>

---
       <textarea class="composebody" tabindex="<?php echo $tabindex++ 
?>" name="message" id="message" rows="20" cols="<?php echo 
$prefs->getValue('wrap_width') ?>" onkeydown="return noesc()"><?php 
echo htmlspecialchars($msg) ?></textarea>

Saved Queries