Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Select input entry with shortcut in metabox #101

Open
patrickf0 opened this issue Apr 28, 2014 · 6 comments
Open

Error: Select input entry with shortcut in metabox #101

patrickf0 opened this issue Apr 28, 2014 · 6 comments

Comments

@patrickf0
Copy link

On an options page it is possible to select the whole input within a text, textarea, image etc. by using shortcut cmd+a(mac) or ctrl+a (win).

But in a meta Box it is not possible, double click on mouse button isn´t working either.

@michaeluno
Copy link
Owner

I cannot confirm it in my environment. Does it happen in the demo plugin?

@patrickf0
Copy link
Author

Yes its in the Demo Plugin as well... I´m using Chrome Browser by the way...

@michaeluno
Copy link
Owner

It works here.

apf_selecting_text

@patrickf0
Copy link
Author

mmh okay... when I hit cmd+a nothing happens...

double click on the mouse works

It´s not a big problem though.

@pcraig3
Copy link
Contributor

pcraig3 commented Oct 17, 2014

Just recently commented on your blog, but (afterwards) figured it made more sense to continue this discussion here.

Am having problems selecting text in textareas and input fields with pre-existing text in Edit Pages for CPTs created by the Admin Page Framework. Not having problems with inputs or textarea in the WP default Posts or Pages.

What’s stranger is I seem to be getting inconsistent results across the three browsers that I used.
In Chrome, I can select text both with the mouse and with keyboard shortcuts (ctrl+a, for example). Chrome works perfectly.
In Firefox, I cannot select text with the mouse, but keyboard shortcuts are working.
With IE, neither the mouse nor the keyboard shortcuts are working.

With IE, it is still possible to modify the value in textareas using the arrow keys, keyboard characters, and the delete/backspace buttons, but even after modifying the field value, selecting text proves impossible.

As a quick follow-up, I was very recently surprised to discover that cursor placement using the mouse worked on both IE and Firefox on the mobile view for the Edit {CPT} Page.

I noticed that when the browser shrinks, the draggable attribute for the Excerpt metabox (ie, the parent of a textarea) switches to false.
Manually switching draggable to 'false' using the FF web developer tools returns the textarea to normal functionality. For IE it returns the ability to use the mouse to position the cursor, but it still remains impossible for me to drag to select text or use keyboard shortcuts to select text.

I don't know whether it's worth reopening the issue over this, but if you're keen to have a look, Micheal, I'll grant you access to my Admin area to see if you can confirm this behaviour/posit a solution.

@michaeluno
Copy link
Owner

As a quick follow-up, I was very recently surprised to discover that cursor placement using the mouse worked on both IE and Firefox on the mobile view for the Edit {CPT} Page.

That's something surprises me to hear that too.

You may check if the problem occurs with the development branch v3.3.0b. There was an issue that the 'textarea' value is not escaped in v3.2.1 and it is fixed in v3.3.0b. So you may try the development version (download).

I don't know whether it's worth reopening the issue over this, but if you're keen to have a look, Micheal, I'll grant you access to my Admin area to see if you can confirm this behaviour/posit a solution.

I'd be happy to. You know my email address. (In case, you lost it, you can find it in the git commit log.)

@michaeluno michaeluno reopened this Oct 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants