# Unable to copy public key when installing theme from private repository using Firefox

**URL:** https://meta.discourse.org/t/unable-to-copy-public-key-when-installing-theme-from-private-repository-using-firefox/97849
**Category:** Bug
**Created:** [September 22, 2018, 7:14pm UTC](https://meta.discourse.org/t/unable-to-copy-public-key-when-installing-theme-from-private-repository-using-firefox/97849 "2018-09-22T19:14:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 22, 2018, 7:14pm UTC](https://meta.discourse.org/t/unable-to-copy-public-key-when-installing-theme-from-private-repository-using-firefox/97849/1 "2018-09-22T19:14:05Z")

</div>

In Firefox, it’s impossible to select and copy the public key that is shown in Admin - Customize - Themes - Import - From the Web - “Theme is in a private git repository”

You cannot select the text from the textarea when the `disabled` attribute is set in Firefox.  
AFAIK, the `readonly` attribute should be used here instead of `disabled`.

[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea:](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea:)

> **`readonly`**
> 
> This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form.

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [September 24, 2018, 1:25am UTC](https://meta.discourse.org/t/unable-to-copy-public-key-when-installing-theme-from-private-repository-using-firefox/97849/3 "2018-09-24T01:25:07Z")

</div>

Thanks! Fixed in

[https://github.com/discourse/discourse/pull/6424](https://github.com/discourse/discourse/pull/6424)

I also took the chance to review other uses of the `disabled` attribute in Discourse, and all is good 👍

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [September 26, 2018, 10:00am UTC](https://meta.discourse.org/t/unable-to-copy-public-key-when-installing-theme-from-private-repository-using-firefox/97849/4 "2018-09-26T10:00:01Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
