Ctrl+Z doesn't work in Message Text (due to auto preview?) [modified]
-
[EDIT] IE 8 X| (I'm at work) on Win XP [/EDIT]
Ctrl+Z for Cut/delete/paste - major
1. Type some text, then select part of it, and cut/delete/paste text. 2. Hit Ctrl+Z immediately, it will undo your change as expected. 3. Repeat Ctrl+Z after 5 seconds or so, it won't work anymore. This can get quite nasty if you paste the wrong text in the middle of a message, or worse, delete text accidentally and can't restore it. I suspect this is related to the auto preview, which I think happens every 2 seconds or so?
Ctrl+Z for regular typing - minor
1. Type any text in the Subject line and hit Ctrl+Z, it will disappear as expected. 2. Do the same thing in the Message text, it won't disappear, even if you do it immediately. You have to delete it manually.
Cheers, विक्रम "We have already been through this, I am not going to repeat myself." - fat_boy, in a global warming thread :doh:
modified on Wednesday, August 10, 2011 2:38 AM
-
[EDIT] IE 8 X| (I'm at work) on Win XP [/EDIT]
Ctrl+Z for Cut/delete/paste - major
1. Type some text, then select part of it, and cut/delete/paste text. 2. Hit Ctrl+Z immediately, it will undo your change as expected. 3. Repeat Ctrl+Z after 5 seconds or so, it won't work anymore. This can get quite nasty if you paste the wrong text in the middle of a message, or worse, delete text accidentally and can't restore it. I suspect this is related to the auto preview, which I think happens every 2 seconds or so?
Ctrl+Z for regular typing - minor
1. Type any text in the Subject line and hit Ctrl+Z, it will disappear as expected. 2. Do the same thing in the Message text, it won't disappear, even if you do it immediately. You have to delete it manually.
Cheers, विक्रम "We have already been through this, I am not going to repeat myself." - fat_boy, in a global warming thread :doh:
modified on Wednesday, August 10, 2011 2:38 AM
Spent the afternoon on this one and have come to the conclusion that, again, IE bites the big one. It's truly painful. The issue? If I do
$('#Preview')[0].html(result);
where Preview is a DIV, then the TextArea element gets Alzheimer's. They are unrelated. I'm updating the innerHTML of a DIV and not touching the TextArea element. Nonetheless, it's full amnesia and no Ctrl-Z. :mad:
cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP