[MGNLGROOVY-105] Terminal copy/paste usability quirks on Safari and FF (and possibly IE) Created: 20/Jan/14 Updated: 17/Mar/21 Resolved: 17/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia Groovy Module |
| Component/s: | console |
| Affects Version/s: | 2.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Federico Grilli |
| Resolution: | Inactive | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OSX10.9, Safari 7.0, FF |
||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
There are a couple of issues with the terminal app in the latest version:
See also comment section in cloned ticket. |
| Comments |
| Comment by Federico Grilli [ 20/Oct/14 ] |
|
After further investigation I've come to the conclusion that this is a browser issue, not a problem with our code or the terminal jquery plugin we use. It looks like some browsers, such as Safari and FF, for some reason disable copy and paste operations when the currently focused element is not an input one. This can be verified also by looking at the browser Edit menu when the terminal has the focus: the Copy and Paste menu items are greyed out (not in Chrome where pasting into the terminal works). In our case, the terminal "input" field which has the focus when try to paste something is actually a DIV and therefore the operation fails. It is true that the terminal plugin code programmatically switches the focus to the non visible textarea (not hidden, just invisible) where the clipboard contents are temporarily copied before being inserted into the DIV but evidently that is too late for the browser to re-enable the paste operation which eventually fails. |