问题
I was creating a quick-reference reminder card for how to soft-reboot a frozen Linux computer (Alt+SysRq+r+e+i+s+u+b) in LibreOffice v6.2.4.2. I chose the "Linux Biolinum Keyboard" font and started typing in individual letters. Examples:
So far so good!
When I went to add the Alt and SysRq keys to the beginning, I got a nice surprise:
The letters "A", "l", "t", automatically changed to "Alt", styled in a single box just like the Alt key itself, rather than three individual boxes. Similarly for "Shift", "Enter", "Backspace", "Ctrl", "Tab", "Home", "Esc", and others.
How the heck does this work? I didn't find anything relevant under Tools → Autocorrect nor Tools → Auto Text nor Insert → Special Characters.
If I could figure out how it works I could fix the broken "SysRq" key... those letters typed in don't reform into a single box. There are a few more that don't seem to work: "Caps Lock", "PgUp", and "PgDn".
Note in the Markdown for this post (above) I used the HTML <kbd>
element to create sequences of characters styled like keys on a keyboard.
Please speak up if this should be posted on some other site in the stackexchange universe.
来源:https://stackoverflow.com/questions/56613006/how-is-the-keyboard-font-automatically-styled-as-keyboard-like-keys-for-the-lett