gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Underlining text using the keyboard shortcut does not work consistently in major browsers

Open anmol257 opened this issue 7 years ago • 12 comments

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.

anmol257 avatar Dec 20 '18 09:12 anmol257

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.

anmol257 avatar Dec 20 '18 09:12 anmol257

Previously: #7162, #12814, #10728.


In Chrome on macOS Ctrl + U works fine, bot in Firefox it does nothing.

swissspidy avatar Dec 20 '18 09:12 swissspidy

On macOS the dedicated shortcut is Cmd + U, as listed in the Keyboard Shortcuts modal:

screenshot 2018-12-26 at 17 03 19

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.

afercia avatar Dec 26 '18 16:12 afercia

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

talldan avatar Jan 11 '19 07:01 talldan

This no longer works since #12249 and is now not included in Gutenberg 5.1.

ellatrix avatar Feb 21 '19 13:02 ellatrix

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 avatar Feb 21 '19 17:02 afercia

@afercia Yes, please create a new issue. Also with detailed information about which formatting shortcuts are conflicting with the OS/browser.

ellatrix avatar Feb 21 '19 19:02 ellatrix

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.

afercia avatar Feb 21 '19 20:02 afercia

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.

afercia avatar Feb 21 '19 21:02 afercia

Underline via cmd+u not working for me today on 5.1.1 (Chrome)

drewclifton avatar Mar 14 '19 16:03 drewclifton

still not working

iamkingsleyf avatar Apr 06 '21 09:04 iamkingsleyf

Just noting this isn't working in Chrome current on Mac current with command + U.

supernovia avatar Nov 16 '21 22:11 supernovia