I know we can use <kbd> to make keyboard short cuts like this ! For example, if I wanted to explain how to open the Run prompt on Windows, which is the Windows key and R, how would this be done? (And for clarity, I mean the Windows key which is typically between ctrl and alt)?
2 Answers
Joey has this trick of embedding the Windows logo image within the kbd tags. So
<kbd>![Windows Key][winlogo]</kbd>
Combined with a regular key, looks like:
R
Here's a better one that shows the 4 parts clearly:
R <kbd>![Windows Key][newwinlogo]</kbd>
Although FWIW I like the old one much better:
R <kbd>![Windows Key][oldwinlogo]</kbd>
Here are the images you have to use in your post's source code:
[winlogo]: https://i.sstatic.net/Rfuw7.png
[newwinlogo]: https://i.sstatic.net/B8Zit.png
[oldwinlogo]: https://i.sstatic.net/T0oPO.png
-
Err, "I like the old one much better" refers to me, not Sathya (although of course he may share my views!)Karan– Karan2012-12-21 03:41:01 +00:00Commented Dec 21, 2012 at 3:41
-
2The only issue with the huge icon is that you can't really use it in a paragraph (because it'll increase the line height) or with other keys because it's too large.2012-12-21 17:49:39 +00:00Commented Dec 21, 2012 at 17:49
-
1@Karan indeed, I do!2012-12-22 06:13:14 +00:00Commented Dec 22, 2012 at 6:13
-
@slhck: 16x16 vs 12x12, so I guess it might be possible to shrink it without losing too much detail (then again, maybe it'll end up looking just like the one Joey uses).Karan– Karan2012-12-23 06:57:19 +00:00Commented Dec 23, 2012 at 6:57
-
1Hmmm, not too nice on mobile (or at least on some devices), nor for the few who have Imgur blocked at work.Arjan– Arjan2013-05-19 14:52:12 +00:00Commented May 19, 2013 at 14:52
-
1Can someone please cleanup the excess white on
[newwinlogo]user345866– user3458662016-10-20 19:25:35 +00:00Commented Oct 20, 2016 at 19:25
Well, you could use a symbol that closely resembles a window, which is SQUARED PLUS, or Unicode: U+229E. It looks like this:
⊞
If it doesn't look like the Windows logo to you, you can also simply use ⊞ Win, Win, Windows or Windows-Key. The benefit here is that everyone will know what you mean.
-
2I call it the super key to be linux friendly.Rob– Rob2012-12-19 19:58:35 +00:00Commented Dec 19, 2012 at 19:58
-
Thanks. I had no problem typing windows but no key actually has the string "windows" and I was just curious. There isn't a key, but we don't care! :)Dave– Dave2012-12-19 21:04:10 +00:00Commented Dec 19, 2012 at 21:04
-
@DaveRook well Windows key don't have a string but you still call it Windows/Win key. ;)avirk– avirk2012-12-20 09:36:48 +00:00Commented Dec 20, 2012 at 9:36
ctrlandaltisn't a problem, why isWinorWindows? It's not printed on the key, but just as clear. How aboutshiftortab?backspace?return?left arrow?