Note that there are some explanatory texts on larger screens.

plurals
  1. POPhonegap styles -webkit-user-select: none; disabling text field
    primarykey
    data
    text
    <p>I'm pretty new to Phonegap. I have a problem where the default css used in a clean Phonegap project won't allow input into text fields. I narrowed it down to one line of CSS:</p> <pre><code>* { -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ } </code></pre> <p>The problem line is:</p> <pre><code>-webkit-user-select: none; </code></pre> <p>This can be found in www/index.css. </p> <p>Seems like completely disabling the input field isn't the desired effect.</p> <p>I've also posted this problem 2 times before but it was closed, not sure why... My issue was closed due to not being a common problem. Well, all I can say about that is, I guess some users at stackoverflow don't think CSS 3, Phonegap, HTML 5, and -webkit-user-select: is a common situation. I'd beg to differ.</p> <p>However I can see this issue also posted here, also causing problems in Safari: <a href="https://stackoverflow.com/questions/10819565/user-selectnone-causes-input-field-to-be-inaccessible-on-safari">User select:none causes input field to be inaccessible on Safari</a> Although slightly different.</p> <p>My current solution is this:</p> <pre><code>-webkit-user-select: text; /* change 'none' to 'text' */ </code></pre> <p>Just still curious as to what is the most elegant solution to enable the text input, but still maintain some of this copy and past functionality that Phonegap is trying to achieve. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload