# Alt键

**Alt键**（“alternate”的缩写）是IBM PC风格计算机键盘上的修饰键，与其他键同时按住，用于调用命令、输入特殊字符或访问菜单项，而不是输入另一个键本身的字符。键盘通常带有两个Alt键，分列空格键两侧，右侧的键往往还兼有第二项独立功能，即用于输入国际字符的AltGr键。<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup>

| 关键事实 | 详情 |
|---|---|
| 作用 | 与其他键配合按下的修饰键；Windows可以将左、右Alt、Shift和Ctrl键区分为不同的位置<sup>[2](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup> |
| 访问键 | Alt加一个或多个字母数字键，通常按顺序按下，将焦点移到某个控件；按下Alt时，控件上方会显示键提示徽标<sup>[3](https://learn.microsoft.com/en-us/windows/apps/develop/input/access-keys)</sup> |
| Alt代码 | 按住Alt并在数字小键盘上输入四位代码，可插入©（Alt+0169）或€（Alt+0128）等符号；键盘顶部的数字行不起作用<sup>[4](https://support.microsoft.com/en-US/Windows/Hardware/Input-Devices/windows-keyboard-tips-and-tricks)</sup> |
| 右Alt（AltGr） | 在英国、欧洲、拉丁美洲和美国国际布局上，右Alt用于输入第三级和第四级字符，例如英国布局上AltGr+4给出€，德国布局上AltGr+Q给出@<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup> |
| Windows实现 | Windows将AltGr视为同时按下Ctrl+Alt，因此英国键盘上Ctrl+Alt+E也能产生€<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup> |
| Mac对应键 | Mac没有AltGr；Apple映射为Windows Alt键的是Option键，用于输入é等特殊字符<sup>[5](https://support.apple.com/en-lamr/guide/mac-help/cpmh0152/mac)</sup> |
| USB标识 | 在USB HID键盘用法表中，左Alt的用法ID为0xE2，右Alt为0xE6，二者作为不同的键报告<sup>[6](https://www.usb.org/sites/default/files/hut1_21_0.pdf)</sup> |

## 命令与访问键

**快捷键。** Alt键参与Windows系统快捷键；Alt+Tab在打开的主窗口之间循环切换，Alt+Shift+Tab则按相反顺序循环。<sup>[2](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup> 微软的设计指南要求应用程序开发者避免将Alt+字母数字组合用作程序快捷键，因为这类组合会与访问键冲突。<sup>[2](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup>

**访问键。** 访问键有时称为助记键，将Alt键与一个或多个字母数字键配对，通常按顺序按下，而不是同时按下。按下Alt会启动访问键功能，并在支持访问键的控件旁显示称为键提示的徽标；随后框架会拒绝无效按键，直到按下有效的访问键，或按Enter、Esc、Tab或方向键退出该模式。[Microsoft Office](https://www.edgepedia.org/zh/microsoft-office)应用程序大量使用访问键，功能区选项卡和所选选项卡上的命令各有独立的作用域。<sup>[3](https://learn.microsoft.com/en-us/windows/apps/develop/input/access-keys)</sup>

## Alt代码

按住Alt键并在数字小键盘上输入四位代码，可插入键盘上未印出的字符。微软记载的示例包括Alt+0169表示©、Alt+0174表示®、Alt+0163表示£、Alt+0128表示€、Alt+0151表示长破折号。此方法只对数字小键盘有效，对键盘顶部的数字行无效，且必须开启Num Lock。<sup>[4](https://support.microsoft.com/en-US/Windows/Hardware/Input-Devices/windows-keyboard-tips-and-tricks)</sup> 这一行为可追溯到最初的IBM PC：对Alt加小键盘0至9的处理由机器的ROM-BIOS完成，如1981年PC《技术参考手册》第3-15页所述；而绕过BIOS的操作系统（如Linux）则在自己的键盘驱动中处理。<sup>[7](https://retrocomputing.stackexchange.com/questions/25016/ibm-pc-alt-numpad-for-entering-character-codes-firmware-bios-or-os/25017)</sup>

## AltGr，即右Alt键

在国际布局上，右Alt键兼作**AltGr**（Alternate Graphic，替代图形），这是一个用于选择键上印制的第三和第四字符的修饰键。示例包括英国布局上AltGr+4输入欧元符号，德国和意大利键盘上AltGr+Q输入@，美国国际布局上AltGr+E输入é、AltGr+N输入ñ。<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup> 标准美国布局没有第三级字符，因此在美国键盘上，右Alt只是普通的第二个Alt，除非启用美国国际布局，此时它才成为AltGr。<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup>

**Ctrl+Alt等效。** Windows将AltGr视为同时按下Ctrl+Alt，这就是英国键盘上Ctrl+Alt+E也能给出€的原因。<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup> IBM为其PCOMM仿真器编写的键盘映射文档也以同样方式列出修饰键状态：ALTGR定义为按下Ctrl+Alt所产生的修饰键状态。<sup>[8](https://www.ibm.com/docs/SSEQ5Y_14.0.0/com.ibm.pcomm.doc/reference/pdf/kbd_referenceV58.pdf)</sup> 微软的一则支持答复确认，在带有AltGr键的键盘上，按下该键会向操作系统报告Alt+Ctrl，这是正常行为。<sup>[9](https://learn.microsoft.com/en-us/answers/questions/4226981/when-i-press-the-right-alt-key-on-my-keyboard-the)</sup> 这种等效对开发者有实际影响：微软的UX指南警告不要将Ctrl+Alt组合用作程序快捷键，因为Windows在某些语言版本中会将这一组合解释为生成字母数字字符的AltGr按键。<sup>[2](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup> 它也可能直接影响用户：在波兰键盘上AltGr+C输入ć，但由于AltGr被视为Ctrl+Alt，据报道该组合会在[Windows 11](https://www.edgepedia.org/zh/windows-11)中触发Ctrl+Alt+C的Copilot快捷键。<sup>[10](https://learn.microsoft.com/en-gb/answers/questions/5853289/right-alt-altgr-and-altgr-c-copilot-pup-up)</sup>

## Mac键盘上的Alt键

Apple键盘没有AltGr键。Apple映射为Windows Alt键的是Option键，用于输入é等特殊字符，查看菜单时按住Option会显示隐藏的菜单项。<sup>[5](https://support.apple.com/en-lamr/guide/mac-help/cpmh0152/mac)</sup> 微软为其Windows App远程客户端编写的文档则从相反方向说明映射关系：Apple键盘上空格键右侧的Option键等同于Windows中的Alt Gr。<sup>[11](https://learn.microsoft.com/el-gr/windows-app/input-keyboard-mouse-touch-pen)</sup> 由于映射因布局而异，同一个物理键在iPadOS下和在同一硬件上的Windows会话下可能产生不同字符。<sup>[11](https://learn.microsoft.com/el-gr/windows-app/input-keyboard-mouse-touch-pen)</sup>

## 历史

IBM PC AT键盘右侧出现了第二个Alt，1986年4月的一份IBM个人计算机研讨会文件已经提到“键盘右侧的替代图形（AltGr）键”。<sup>[12](https://bitsavers.computerhistory.org/pdf/ibm/pc/IBM_Personal_Computer_Seminar_Proceedings/PC_Seminar_V04_N02_198604.pdf)</sup> 右Alt被重新用作AltGr，以输入非英语布局所需的额外字符，这一角色在今天的Windows布局上仍然保留。<sup>[1](https://alttypist.com/blog/where-is-the-alt-gr-key/)</sup>

## 软件接口中的Alt键

应用程序通过多个层面看到Alt键。在USB HID报告中，键盘发送一个修饰字节，其中左Alt和右Alt各有独立的位，用法表将LeftAlt分配为ID 0xE2、RightAlt分配为ID 0xE6，因此两个物理键在协议层面是可区分的。<sup>[6](https://www.usb.org/sites/default/files/hut1_21_0.pdf)</sup> 在Web标准中，UI Events规范为KeyboardEvent提供了一个`altKey`属性，当Alt（或Option）键修饰符处于活动状态时为true，并提供`getModifierState("AltGraph")`查询AltGraph修饰符；规范指出，某些操作系统用Alt和Control修饰键的组合来模拟AltGraph，并鼓励实现直接使用AltGraph修饰符。<sup>[13](https://www.w3.org/TR/uievents/)</sup> 在[Windows API](https://www.edgepedia.org/zh/windows-api)中，Alt键由VirtualKey.Menu值表示，应用程序在非修饰键事件到达时检查修饰键状态。<sup>[14](https://learn.microsoft.com/en-us/windows/apps/develop/input/keyboard-events)</sup>

## References

1. [Where Is the Alt Gr Key on a Keyboard? (Windows, Mac & Laptop), Alt Typist](https://alttypist.com/blog/where-is-the-alt-gr-key/)
2. [Keyboard, Win32 apps, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)
3. [Access keys design guidelines, Windows apps, Microsoft Learn](https://learn.microsoft.com/en-us/windows/apps/develop/input/access-keys)
4. [Windows keyboard tips and tricks, Microsoft Support](https://support.microsoft.com/en-US/Windows/Hardware/Input-Devices/windows-keyboard-tips-and-tricks)
5. [Windows keys on a Mac keyboard, Apple Support](https://support.apple.com/en-lamr/guide/mac-help/cpmh0152/mac)
6. [HID Usage Tables, USB Implementers Forum](https://www.usb.org/sites/default/files/hut1_21_0.pdf)
7. [IBM PC Alt + numpad for entering character codes, Retrocomputing Stack Exchange](https://retrocomputing.stackexchange.com/questions/25016/ibm-pc-alt-numpad-for-entering-character-codes-firmware-bios-or-os/25017)
8. [Keyboard Layout and Mapping Reference, IBM PCOMM](https://www.ibm.com/docs/SSEQ5Y_14.0.0/com.ibm.pcomm.doc/reference/pdf/kbd_referenceV58.pdf)
9. [When I press the right Alt key the left Control gets registered pressed, Microsoft Q&A](https://learn.microsoft.com/en-us/answers/questions/4226981/when-i-press-the-right-alt-key-on-my-keyboard-the)
10. [Right Alt = AltGr, and AltGr + C = ć, Microsoft Q&A](https://learn.microsoft.com/en-gb/answers/questions/5853289/right-alt-altgr-and-altgr-c-copilot-pup-up)
11. [Use keyboard, mouse, touch, and pen in Windows App, Microsoft Learn](https://learn.microsoft.com/el-gr/windows-app/input-keyboard-mouse-touch-pen)
12. [IBM Personal Computer Seminar Proceedings, V04 N02, April 1986, bitsavers](https://bitsavers.computerhistory.org/pdf/ibm/pc/IBM_Personal_Computer_Seminar_Proceedings/PC_Seminar_V04_N02_198604.pdf)
13. [UI Events, W3C](https://www.w3.org/TR/uievents/)
14. [Keyboard events, Windows apps, Microsoft Learn](https://learn.microsoft.com/en-us/windows/apps/develop/input/keyboard-events)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Boards, peripherals & form factors › Peripherals & expansion hardware › Input devices

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/alt-key

English original: https://www.edgepedia.org/alt-key
