Template:Key press:修订间差异

(建立内容为“<kbd style="border: 1px solid #aaa; border-radius: 2px; box-shadow: 1px 2px 2px #ddd; background-color: #f9f9f9; background-image: linear-gradient(top, #eee, #f9f…”的新页面)
 
无编辑摘要
 
第1行: 第1行:
<kbd style="border: 1px solid #aaa; border-radius: 2px; box-shadow: 1px 2px 2px #ddd; background-color: #f9f9f9; background-image: linear-gradient(top, #eee, #f9f9f9, #eee); padding: 1px 3px; font-family: inherit; font-size: 0.85em; white-space: nowrap;">{{#switch:{{{1}}}
<kbd style="border: 1px solid #aaa; border-radius: 2px; box-shadow: 1px 2px 2px #ddd; background-color: #f9f9f9; background-image: linear-gradient(top, #eee, #f9f9f9, #eee); padding: 1px 3px; font-family: inherit; font-size: 0.85em; color:dimgray;">{{#switch:{{lc:{{{1}}}}}
|Enter|enter|ent|Ent=&#8629;&nbsp;Enter
| 回车|enter|ent| 换行=&#8629;&nbsp;Enter
|Ctrl|ctrl|Control|control=^Ctrl
| 控制|ctrl|control=^Ctrl
|space|Space=&#9251; Space
|space| 空格=&#9251; Space
|Home|home=&#127968; Home
|Home|home=&#127968; Home
|Esc|Escape|esc|escape=&#9099;Esc
|Esc|Escape|esc|escape=&#8592;Esc
|Tab|tab=&#8646;Tab
| 制表|tab=&#8646;Tab
|LockMaj|maj|Maj=&#128274;Maj
|LockMaj|maj|Maj=&#128274;Maj
|Shift|shift=&#8679;Shift
| 上档|shift=&#8679;Shift
|Alt|alt=Alt
|suppr|Suppr| 删除|delete|del|Del=Delete
|Option|option|Opt|opt=&#8997;Option
|back| 退格=&#8592;&nbsp;&nbsp;&nbsp;&nbsp;
|Cmd|cmd|Command|command=&#8984;Command
|1|2|3|4|5|6|7|8|9|0={{#ifeq:{{{2|}}}|numpad|NumPad {{{1}}}|{{{1}}}}}
|suppr|Suppr|Delete|delete|del|Del=Delete
|Backspace|backspace|Back|back=&#8592;Backspace
|1|2|3|4|5|6|7|8|9|0|+|-={{#ifeq:{{{2|}}}|numpad|NumPad {{{1}}}|{{{1}}}}}
|#default={{{1}}}
|#default={{{1}}}
}}</kbd><noinclude>
}}</kbd><noinclude>
第22行: 第19行:
<pre>{{key press|A}}</pre>
<pre>{{key press|A}}</pre>
{{key press|A}}
{{key press|A}}
== Held modifier keys ==
{| class ="wikitable"
! Modifier !! Usage !! Render !! Notes
|-
| Ctrl || <tt>Ctrl</tt>, <tt>ctrl</tt>, <tt>Control</tt>, <tt>control</tt> || {{key press|ctrl}} ||
|-
| Command || <tt>Cmd</tt>, <tt>cmd</tt>, <tt>Command</tt>, <tt>command</tt> || {{key press|cmd}} ||
|-
| Shift || <tt>Shift</tt>, <tt>shift</tt> || {{key press|Shift}} ||
|-
| Alt || <tt>Alt</tt>, <tt>alt</tt> || {{key press|Alt}} ||
|-
| Option || <tt>Option</tt>, <tt>option</tt>, <tt>Opt</tt>, <tt>opt</tt> || {{key press|Option}} || OS X equivalent of {{key press|Alt}}
|}


== Special keys ==
== Special keys ==
第45行: 第26行:
|-
|-
| Enter || <tt>Enter</tt>, <tt>enter</tt>, <tt>Ent</tt>, <tt>ent</tt> || {{key press|ent}} ||
| Enter || <tt>Enter</tt>, <tt>enter</tt>, <tt>Ent</tt>, <tt>ent</tt> || {{key press|ent}} ||
|-
| Ctrl || <tt>Ctrl</tt>, <tt>ctrl</tt>, <tt>control</tt> || {{key press|ctrl}} ||
|-
|-
| Space Bar || <tt>Space</tt>, <tt>space</tt> || {{key press|space}} ||
| Space Bar || <tt>Space</tt>, <tt>space</tt> || {{key press|space}} ||
第54行: 第37行:
| Tab || <tt>tab</tt>, <tt>Tab</tt> || {{key press|tab}} ||
| Tab || <tt>tab</tt>, <tt>Tab</tt> || {{key press|tab}} ||
|-
|-
| Delete || <tt>del</tt>, <tt>Del</tt>, <tt>suppr</tt>, <tt>Suppr</tt>, <tt>delete</tt>, <tt>Delete</tt> || {{key press|del}} || Mac users may find this confusing
| Maj || <tt>LockMaj</tt>, <tt>Maj</tt>, <tt>maj</tt> || {{key press|maj}} || Does not always render correctly, depending on the browser and installed fonts
|-
|-
| Backspace || <tt>Backspace</tt>, <tt>backspace</tt>, <tt>Back</tt>, <tt>back</tt> || {{key press|back}} || Mac users will probably understand this to be the key labeled "delete"
| Shift || <tt>shift</tt>, <tt>Shift</tt> || {{key press|Shift}} ||
|}
|-
 
| Delete || <tt>del</tt>, <tt>Del</tt>, <tt>suppr</tt>, <tt>Suppr</tt>, <tt>delete</tt>, <tt>Delete</tt> || {{key press|del}}
== Special instructions ==
 
{| class ="wikitable"
! Special instruction !! Usage !! Render !! Notes
|-
|-
| Maj || <tt>LockMaj</tt>, <tt>Maj</tt>, <tt>maj</tt> || {{key press|maj}} || Does not always render correctly, depending on the browser and installed fonts
| Back || <tt>back</tt>, <tt>Back</tt> || {{key press|back}} ||
|-
|-
| Numpad || <tt><nowiki>{{key press|1|numpad}}</nowiki></tt> || {{key press|1|numpad}} || Note special syntax for the second parameter
| Numpad || 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 and second parameter <tt>numpad</tt> or <tt>NumPad</tt> || {{key press|1|numpad}} || needs both parameters. If only first, renders normaly
|}
|}
[[Category:模板]]
[[Category:模板]]
</noinclude>
</noinclude>

2022年10月28日 (五) 13:23的最新版本

{{{1}}}

Used for keyboard shortcuts.

Example:

{{key press|A}}

A

Special keys

Key press Usage Render Notes
Enter Enter, enter, Ent, ent ↵ Enter
Ctrl Ctrl, ctrl, control ^Ctrl
Space Bar Space, space ␣ Space
Home home, Home 🏠 Home Does not always render correctly, depending on the browser and installed fonts
Escape Esc, esc, Escape, escape ←Esc
Tab tab, Tab ⇆Tab
Maj LockMaj, Maj, maj 🔒Maj Does not always render correctly, depending on the browser and installed fonts
Shift shift, Shift ⇧Shift
Delete del, Del, suppr, Suppr, delete, Delete Delete
Back back, Back ←    
Numpad 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 and second parameter numpad or NumPad NumPad 1 needs both parameters. If only first, renders normaly