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

List block: Add keyboard support for list indenting and outdenting #1640

Closed
DevinWalker opened this issue Jul 1, 2017 · 4 comments · Fixed by #1826
Closed

List block: Add keyboard support for list indenting and outdenting #1640

DevinWalker opened this issue Jul 1, 2017 · 4 comments · Fixed by #1826
Assignees

Comments

@DevinWalker
Copy link
Contributor

DevinWalker commented Jul 1, 2017

Issue Overview

Currently when using the list block element you cannot indent lists using the keyboard shortcut ( + ]) or tab. As well, you can not easily outdent using (+ [) or (shift + tab). This means increased time to make lists that are more than one hierarchy.

2017-07-01_16-14-59

I believe adding this would help improve the usability. Currently you can use ( + b) to bold and same for italics, why not also for list indenting?

Notes:
This functionality is referenced here: #1552

@DevinWalker DevinWalker changed the title List block: Add keyboard support for list indenting List block: Add keyboard support for list indenting and outdenting Jul 1, 2017
DevinWalker added a commit to DevinWalker/gutenberg that referenced this issue Jul 2, 2017
@afercia
Copy link
Contributor

afercia commented Jul 2, 2017

Worth noting using the Tab key for indentation breaks keyboard navigation through blocks.

@DevinWalker
Copy link
Contributor Author

Noted. But tabbing is not really working as currently should for all blocks currently:

2017-07-02_11-13-49

I would prefer (⌘+ [) rather than the tabbing for indenting lists.

@BoardJames BoardJames self-assigned this Jul 10, 2017
@BoardJames
Copy link

BoardJames commented Jul 10, 2017

One other thing that needs to be considered is that '[' and ']' are not on all keyboards. I'm told that the locales 'fr', 'nl', 'sv', 'ru', 'de', 'es' and 'it' do not have those keys. Apparently on textbox.io the square brackets, "meta+]" for indent and "meta+[" for outdent, are used on most locales and "meta+m" / "meta+shift+m" is used for the ones which don't have the square brackets.

I will put in a pull request with those key bindings.

@afercia
Copy link
Contributor

afercia commented Jul 10, 2017

Right, for example on an Italian keyboard layout [ and ] can be typed only pressing Alt+è and Alt++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants