6.0.0-beta1
7/4/25

[#12904] Cut/Paste via ctrl-c ctrl-v not working in Firefox in preview mode
Summary Cut/Paste via ctrl-c ctrl-v not working in Firefox in preview mode
Queue IMP
Queue Version 6.1.6
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester aria (at) bsc (dot) gwu (dot) edu
Created 01/06/2014 (4197 days ago)
Due
Updated 04/07/2014 (4106 days ago)
Assigned 01/08/2014 (4195 days ago)
Resolved 04/07/2014 (4106 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/07/2014 07:42:38 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
04/07/2014 07:42:13 PM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_1):

commit 11c160510d47aa3a16a173e362f0cb5ed8db7d84
Author: João Machado <geral@jpaulo.eu>
Date:   Mon Apr 7 18:06:27 2014 +0100

     Fix HTML messages text copy using keyboard

     Signed-off-by: Michael M Slusarz <slusarz@horde.org>

     Bug #12904

  imp/js/dimpbase.js |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/11c160510d47aa3a16a173e362f0cb5ed8db7d84
04/07/2014 07:41:12 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit 81affcc9f2f7919cb1b9e72dd28cf611815f32aa
Author: João Machado <geral@jpaulo.eu>
Date:   Mon Apr 7 18:06:27 2014 +0100

     Fix HTML messages text copy using keyboard

     Signed-off-by: Michael M Slusarz <slusarz@horde.org>

     Bug #12904

  imp/js/dimpbase.js |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/81affcc9f2f7919cb1b9e72dd28cf611815f32aa
02/26/2014 06:20:19 PM viktor (at) szepe (dot) net Comment #5 Reply to this comment
Upon pressing down the CTRL key the selection loses focus.
I've test what is focused (document.activeElement)

- when selecting text in the iframe the iframe is focused
- when pressing the Ctrl key the main (not the iframe's) body element 
is in focus

I hope that helps.

01/17/2014 06:30:55 PM Michael Slusarz Comment #4 Reply to this comment
You are correct.  When I use firefox, if the message is a text 
message, it does cut/paste properly.  HTML messages don't.  However, 
based on what you said, where CTRL-C is not supported inside and 
iframe, then why does it work fine in IE for both text and html 
message and in firefox for at least text message?
HTML messages are displayed in an IFRAME, for both security and 
presentation purposes (the HTML message should be displayed via the 
formatting contained in the message, not any Horde/IMP display 
formatting).

Plaintext messages are not displayed in an IFRAME - they contain no 
formatting data and present no security hazard.

As far as IE vs. FF... it sounds like IE is capturing these actions 
within an IFRAME and FF isn't.  I don't know if this is a "feature" or 
bug of FF.  I don't have much time to look at this at present, so any 
help in determining this would be appreciated.
01/08/2014 07:09:52 PM aria (at) bsc (dot) gwu (dot) edu Comment #3 Reply to this comment
I can't reproduce on text messages.  I can reproduce on HTML 
messages.  But sounds like a browser limitation to me (Ctrl-C is not 
allowed inside an IFRAME).
You are correct.  When I use firefox, if the message is a text 
message, it does cut/paste properly.  HTML messages don't.  However, 
based on what you said, where CTRL-C is not supported inside and 
iframe, then why does it work fine in IE for both text and html 
message and in firefox for at least text message?

Thanks for the clarification.
01/08/2014 07:01:20 PM Michael Slusarz Comment #2
State ⇒ Feedback
Reply to this comment
In dynamic view, when you highlight text in the message preview 
window, then hit CTRL-C the highlighted text is not copied to the 
buffer when using Firefox (latest version).
I can't reproduce on text messages.  I can reproduce on HTML messages. 
  But sounds like a browser limitation to me (Ctrl-C is not allowed 
inside an IFRAME).
01/06/2014 05:40:42 PM aria (at) bsc (dot) gwu (dot) edu Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Cut/Paste via ctrl-c ctrl-v not working in Firefox in preview mode
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,
In dynamic view, when you highlight text in the message preview 
window, then hit CTRL-C the highlighted text is not copied to the 
buffer when using Firefox (latest version).  However, if you select 
and then right click, and pick copy, the text is copied to the buffer. 
  Or, you can double click the message to open in a separate window, 
then you can use CTRL-C to copy highlighted text.

Everything appears to work fine when using IE.

Thanks.

Saved Queries