[Tickets #1686] NEW: compose window empties when user hits ESC in IE

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Apr 4 11:44:17 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1686
-----------------------------------------------------------------------
 Ticket             | 1686
 Created By         | liamr at umich.edu
 Summary            | compose window empties when user hits ESC in IE
 Queue              | IMP
 Version            | RELENG_3
 State              | New
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | 
-----------------------------------------------------------------------


liamr at umich.edu (2005-04-04 11:44) wrote:

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.in
c
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>
 




More information about the bugs mailing list