Highlighting source code does not allow text to be pasted using Middle Click on Linux versions of Firefox

Miscellaneous

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Normally, highlighting text within an X11 environment places that text in a copy buffer, which can be extracted by using middle click on the mouse.

In Stash, under certain conditions, highlighting source code does not automatically place the text within the middle mouse copy buffer, but highlighting other elements does work properly.

Diagnosis

Environment

  • Linux and Firefox 

Cause

Stash uses a Javascript library called Codemirror to handle the display of source.  This issue is tracked here, but the underlying issue is that Firefox does not fire a copy event when the DOM element is not being focused (which is incorrect according to spec).  This is being tracked in this bug for Mozilla Firefox.

Resolution or Workaround

There is no workaround at this time, other to use a different browser that handles this properly, such as Chrome.

Last modified on Feb 23, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.