Is there any official list of keyboard shortcuts for browsers, that can be used in contentEditable div
for text formatting?
I know three for Chrome (and maybe some other browsers): Ctrl+B, Ctrl+U, CTRL+I.
Where can I find this information? I've tried to find it, but unsuccessfully.
Is there any official list of keyboard shortcuts for browsers, that can be used in contentEditable div
for text formatting?
I know three for Chrome (and maybe some other browsers): Ctrl+B, Ctrl+U, CTRL+I.
Where can I find this information? I've tried to find it, but unsuccessfully.
Share Improve this question edited Feb 14, 2018 at 17:11 Roman Konkin asked Feb 14, 2018 at 14:58 Roman KonkinRoman Konkin 1611 silver badge8 bronze badges 2- I believe that's system-dependent. – Derek 朕會功夫 Commented Feb 14, 2018 at 15:00
- @Derek朕會功夫 I found this developer.mozilla/en-US/docs/Talk:HTML/Content_Editable, but it's very old info and not official. And I've tested this keyboard shortcuts in Firefox - doesn't work. So, I think it's not system-dependent. – Roman Konkin Commented Feb 14, 2018 at 17:29
2 Answers
Reset to default 7Bit late :) but just in case...
It's a bit dense, but this precisely answers your question: https://source.chromium/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/editing_behavior
TL;DR, there are a bunch of (honestly) kinda interesting and obscure things you can do, but in terms of the mainstream ^BIU is pretty much it.
(Aside - copying the entire relevant section of the code would turn this answer into quite the wall of text... I don't mind doing that if others think it's a good idea.)
Those three and Ctrl+P, at least in Chromium Ctrl+p will print just your contentEditable div with its formatting.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742299411a4417755.html
评论列表(0条)