Underlining text using the keyboard shortcut does not work consistently in major browsers
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
There is no option to underline text including heading. Clt + u opens source. So In order to underline every time I have to use HTML coding. Kindly provide a button for it within Gutenberg in order to improve convenience.
Previously: #7162, #12814, #10728.
In Chrome on macOS Ctrl + U works fine, bot in Firefox it does nothing.
On macOS the dedicated shortcut is Cmd + U, as listed in the Keyboard Shortcuts modal:
However, in Chrome it doesn't do anything, in Firefox it opens the view source. In the Classic Editor, it works. I'd call this a bug.
It seems like it must be a regression since it's been audited in the past as working: https://github.com/WordPress/gutenberg/issues/71#issuecomment-408916912
This no longer works since #12249 and is now not included in Gutenberg 5.1.
Underline has just been restored in https://github.com/WordPress/gutenberg/pull/14008
However, I'd recommend to review the keyboard shortcuts for the most common formatting. Some of these shortcuts use only one modifier key and still conflict with native browsers shortcuts, preventing access to browsers features.
Also, they're inconsistent with each other and very difficult to remember, for example:
- primary + b (bold)
- primary + i (italic)
- access + x (code)
- access + d (strikethrough)
- primary + u (underline)
Image and Link are special cases, but I'd consider to make the formatting ones above use the same modifiers. Please let me know if I should create a new issue.
@afercia Yes, please create a new issue. Also with detailed information about which formatting shortcuts are conflicting with the OS/browser.
with detailed information about which formatting shortcuts are conflicting with the OS/browser.
I'm afraid that would be a bit too much for me :) no bandwidth to test all supported browsers in at least the 3 major desktop operating systems.
Created https://github.com/WordPress/gutenberg/issues/14031. I guess this one can be closed now? Please do feel free to reopen if I'm missing something.
Underline via cmd+u not working for me today on 5.1.1 (Chrome)
still not working
Just noting this isn't working in Chrome current on Mac current with command + U.