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

Classic Block: Consider to make the editor keyboard shortcuts visible in the tooltips #6195

Closed
afercia opened this issue Apr 16, 2018 · 14 comments
Labels
[Block] Classic Affects the Classic Editor Block [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Milestone

Comments

@afercia
Copy link
Contributor

afercia commented Apr 16, 2018

In WordPress, https://core.trac.wordpress.org/changeset/38897 made some editor keyboard shortcuts more discoverable by adding them to the buttons tooltips. See also https://core.trac.wordpress.org/ticket/43773

screen shot 2018-04-16 at 10 19 59

Instead, in Gutenberg the keyboard shortcuts are not exposed in the tooltips, not even the ones in the Classic editor (which is TinyMCE):

screen shot 2018-04-16 at 10 33 09

screen shot 2018-04-16 at 10 33 19

For more details on how the shortcuts are added and translated, see src/wp-includes/js/tinymce/plugins/wordpress/plugin.js in WordPress, which gets the translations from PHP via the localized editor settings object.

Aside:
notice the positioning (and size) of the tooltips in the classic editor block (TinyMCE) is different from the one in the Gutenberg blocks.

@afercia afercia added [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Component] TinyMCE labels Apr 16, 2018
@afercia afercia changed the title Consider to amke the editor keyboard shortcuts visible in the tooltips Consider to make the editor keyboard shortcuts visible in the tooltips Apr 16, 2018
@afercia
Copy link
Contributor Author

afercia commented May 30, 2018

Some shortcuts are now displayed in the tooltips, see #6605 and #6669. The classic block doesn't show them yet, though.

@mtias mtias changed the title Consider to make the editor keyboard shortcuts visible in the tooltips Classic Block: Consider to make the editor keyboard shortcuts visible in the tooltips Jul 19, 2018
@afercia
Copy link
Contributor Author

afercia commented Sep 10, 2018

I'd say this should be solved, as it's important for accessibility and also because there's no feature parity with the Classic Editor. /Cc @azaozz @iseulde

@afercia afercia added this to the WordPress 5.0 milestone Sep 10, 2018
@ellatrix ellatrix added [Block] Classic Affects the Classic Editor Block and removed [Component] TinyMCE labels Oct 31, 2018
@Firestorm980
Copy link

I'd like to take this one (via @10up) - cc @tofumatt

@tofumatt
Copy link
Member

tofumatt commented Nov 9, 2018

That'd be awesome 👍

@mtias
Copy link
Member

mtias commented Nov 15, 2018

Is this in progress?

@tofumatt
Copy link
Member

I don't see a PR for it; I've moved it out of the 5.0 RC milestone.

@Firestorm980
Copy link

Apologies @mtias @tofumatt, I haven't been able to make much headway on this one yet.

So far I have seen the behavior of a new classic block being added having the shortcuts, but on subsequent loads not having it. It also looked like shortcuts on TinyMCE were being removed since we appear to be handling them elsewhere. I'm wondering if this removal may be partly what's causing the issue and if so, how we'd work around that since TinyMCE is probably using that to show shortcuts in its tooltips.

@tofumatt
Copy link
Member

No worries! Thanks for the update; I'm not really aware of how those shortcuts are implemented so I'd need to check into it myself. I don't think I have the chance to do that soon so if you wanted to check out another issue for now that's cool, sorry I'm not able to devote more time to it at the moment 😢

@Firestorm980
Copy link

Fix in this PR: #12447

@Firestorm980
Copy link

@tofumatt just want to make sure this is on your radar for the PR.

@tofumatt
Copy link
Member

Hey @Firestorm980, really sorry this fell behind in my queue, but I've assigned myself to review that PR just now and should be looking shortly. Cheers for the ping and sorry it took me forever! 😓

@timwright12
Copy link
Contributor

@tofumatt just checking in on this one

@afercia
Copy link
Contributor Author

afercia commented Mar 29, 2019

This has been fixed in core https://core.trac.wordpress.org/ticket/35710 by @azaozz. Thinking this issue and the pending PR #12447 can be closed now.

@aduth
Copy link
Member

aduth commented Apr 24, 2019

This has been fixed in core https://core.trac.wordpress.org/ticket/35710 by @azaozz. Thinking this issue and the pending PR #12447 can be closed now.

In reviewing #12447 and tracing back to this note and related core commit and ticket, I'd conclude the same.

@aduth aduth closed this as completed Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Classic Affects the Classic Editor Block [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants