# AltGr 键

**AltGr**（也写作 **Alt Gr**，是“备用图形”的缩写）是许多非美国计算机键盘上的修饰键，用于选择第三层字符，例如带重音的字母、货币符号，以及 @、{、} 等没有专用按键的标点符号。IBM 将该键命名为“备用图形”，这正是 Alt Gr 标签的来源。<sup>[1](https://datosatutiplen.wordpress.com/2025/12/10/por-que-hay-dos-botones-alt-en-el-teclado/)</sup> 它通常是空格键右侧的右 Alt 键，在标准美国键盘上并不存在。<sup>[2](https://ftp.emacinc.com/Tech_Info/ROMDOS/romdos_manual_62.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 全称 | “备用图形”；Alt Gr 标签来自 IBM 对该键的命名<sup>[1](https://datosatutiplen.wordpress.com/2025/12/10/por-que-hay-dos-botones-alt-en-el-teclado/)</sup> |
| 标准角色 | ISO/IEC 9995-2 中的第 3 层选择键，通常标为“Alt Gr”，在将字符分配到第 3 层的键盘上是必需的<sup>[3](https://preview.sist.si/sist-preview/51644/fe874182c6274a6a8148fa4f17732968/ISO-IEC-9995-2-2009.pdf)</sup> |
| 硬件标识 | USB HID 用途 E6，“Keyboard RightAlt”，为 101/104 键键盘定义<sup>[4](https://usb.org/sites/default/files/hut1_5.pdf)</sup> |
| Windows 行为 | 在某些语言版本中被视为 Ctrl+Alt 组合，因此微软建议程序不要使用 Ctrl+Alt 快捷键<sup>[5](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup> |
| Linux/X11 行为 | 映射到键符 ISO_Level3_Shift；Shift+AltGr 可达到第四层<sup>[6](https://xkeyboard-config.freedesktop.org/doc/enhancing/)</sup> |
| 可用性 | 标准美国键盘上没有；在没有右 Alt 键的键盘上，同时按下 Ctrl 和 Alt 代表 AltGr<sup>[2](https://ftp.emacinc.com/Tech_Info/ROMDOS/romdos_manual_62.pdf)</sup> |
| 输出示例 | 在德语键盘上，AltGr+Q 产生 @；在美式国际布局上，AltGr+5 产生 €<sup>[7](https://devblogs.microsoft.com/oldnewthing/20040329-00/?p=40003)</sup><sup> • </sup><sup>[8](https://learn.microsoft.com/en-us/answers/questions/4104382/keyboard-layout-not-working-for-some-characters)</sup> |

## 层级与 ISO/IEC 9995 模型

ISO/IEC 9995 标准系列将键盘输入组织为层级和组。第 1 层存放未上档字符，第 2 层存放上档字符，第 3 层存放通过专用键选择的另一组字符，该键通常标为“Alt Gr”。标准要求，在将字符分配到第 3 层的键盘上，至少需要一个这样的第 3 层选择键，位于空格键附近的区域。<sup>[3](https://preview.sist.si/sist-preview/51644/fe874182c6274a6a8148fa4f17732968/ISO-IEC-9995-2-2009.pdf)</sup> 允许有第四层；在没有专用第 4 层选择功能的情况下，通过同时激活第 2 层和第 3 层选择功能来达到，即同时按下 Shift 和 AltGr。<sup>[9](https://standards.iteh.ai/catalog/standards/iso/3f864ad5-f223-46ef-b58e-8af64fd22171/iso-iec-9995-1)</sup>

在实践中，这意味着一个欧洲键盘按键最多可刻有四个字符：左下角字符不需要修饰键，左上角字符需要 Shift，右下角字符需要 AltGr，右上角字符需要 Shift+AltGr。IBM 为其终端仿真器编写的键盘映射文档正是遵循这一方案，将 ALTGR 列为按下 Ctrl+Alt 产生的换档状态。<sup>[10](https://www.ibm.com/docs/SSEQ5Y_14.0.0/com.ibm.pcomm.doc/reference/pdf/kbd_referenceV58.pdf)</sup>

## 硬件与历史

该键随 IBM 的键盘进入 PC 硬件。根据 IBM 增强型键盘文档，AltGr 与 Alt 和 Ctrl 一起出现在可更换键帽的 1.5 单位按键列表中，而 101 键美国布局与 102 键欧洲布局之间的唯一区别在于键盘的打字区域。<sup>[11](https://sharktastica.co.uk/resources/docs/IBM_ZG87-4014_Enhanced_87.pdf)</sup> 在 USB 键盘上，物理按键报告 HID 用途 E6，“Keyboard RightAlt”，它存在于 101/104 键布局上，但不存在于较旧的 84 键 AT 布局上。<sup>[4](https://usb.org/sites/default/files/hut1_5.pdf)</sup>

由于从硬件的角度来看该键是右侧 Alt 键，其 AltGr 含义是软件中键盘布局的属性，而不是按键本身的属性。布局驱动程序决定 RightAlt 扫描码的作用；在没有第三层的布局上，例如普通美国布局，它表现为普通的 Alt 键。<sup>[12](https://stackoverflow.com/questions/78398995/how-to-distinguish-altgr-and-ctrlralt-programmatically-osk-exe-does-it-somehow)</sup>

## Windows：AltGr 即 Ctrl+Alt

在 Windows 上，AltGr 实现为 Ctrl 和右 Alt 的组合。例如，[德语键盘布局](https://www.edgepedia.org/zh/german-keyboard-layout)驱动程序将右 Alt 键视为 Control+Alt。<sup>[13](https://kbdlayout.info/KBDGR/6.0.6000.16386/overview%2Bnames/VK_SHIFT%2BVK_CONTROL)</sup> Windows 团队资深开发者陈雷蒙（Raymond Chen）解释了其后果：Ctrl+Alt 在许多键盘上具有特殊含义，充当备用换档键，因此 Windows 避免在任何地方将 Ctrl+Alt 用作快捷键修饰键；在需要组合修饰键的地方，改用 Ctrl+Shift。<sup>[7](https://devblogs.microsoft.com/oldnewthing/20040329-00/?p=40003)</sup>

这给软件带来了实际冲突。微软的用户体验指南告诉开发者不要使用 Ctrl+Alt 组合作为快捷键，因为 Windows 在某些语言版本中将该组合解释为 AltGr 键，从而生成字母数字字符。<sup>[5](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup> 同一指南警告不要为 @ $ {} [] \ ~ | ^ ' < > 等字符分配快捷键，这些字符在不同语言中需要不同的按键组合，通常是 AltGr 层。<sup>[5](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)</sup> 一个具体例子：在波兰语键盘上，AltGr+C 产生 ć，但由于 AltGr 就是 Ctrl+Alt，同一组合可能触发注册为 Ctrl+Alt+C 的程序快捷键。<sup>[14](https://learn.microsoft.com/en-gb/answers/questions/5853289/right-alt-altgr-and-altgr-c-copilot-pup-up)</sup>

## Linux 与 X 键盘扩展

在 X11 系统上，AltGr 键绑定到键符 ISO_Level3_Shift，即 ISO 9995 第 3 层选择功能。在大多数发行版使用的 xkeyboard-config 数据中，默认行为将右 Alt 键映射到该键符，建议具有两个以上换档层的布局包含 level3(ralt_switch) 定义，以便使用 AltGr 键按标准方式切换到第 3 层和第 4 层。<sup>[6](https://xkeyboard-config.freedesktop.org/doc/enhancing/)</sup><sup> • </sup><sup>[15](https://xkeyboard-config.pages.freedesktop.org/website/doc/contributing/)</sup> 同时按住 Shift 可选择第四层。<sup>[6](https://xkeyboard-config.freedesktop.org/doc/enhancing/)</sup>

该映射是可配置的。

## AltGr 能输入什么

通过 AltGr 可达到的字符因布局而异，但模式是一致的：本地语言或计算中需要但无法放入基本层的符号。

- **欧元符号。** 根据欧盟委员会的建议，欧元符号放置在欧洲键盘的 AltGr+e 上，除非该组合已经产生不同的字符。<sup>[16](https://www.pik-potsdam.de/~bloh/pdffile/aix43_difference_guide.pdf)</sup>
- **美式国际布局。** 美国-国际布局使用 AltGr 输入普通美国布局上不可用的字符，例如 AltGr+5 输入 €，并将其与死键配对用于重音符号。<sup>[8](https://learn.microsoft.com/en-us/answers/questions/4104382/keyboard-layout-not-working-for-some-characters)</sup> Linux 提供相关变体，例如 us altgr-intl，它将欧洲语言的（AltGr-）死键放在美国物理布局上。<sup>[17](https://altgr-weur.eu/altgr-intl.html)</sup>
- **扩展文字。** 俄语扩展键盘使用 AltGr 达到第 3 层的教会斯拉夫语字符，并与 Shift 一起达到第 4 层，包括 AltGr+J 输入宽 O 等字符。<sup>[18](https://www.unicode.org/notes/tn41/tn41-1.pdf)</sup>

## 实际后果

由于在 Windows 上 AltGr 被合成为 Ctrl+Alt，监视原始按键状态的程序可能对其产生误解。在波兰语键盘上按下 AltGr 会产生看起来像按下 Ctrl+Alt 的事件序列，这对该布局来说是正常行为。<sup>[19](https://learn.microsoft.com/en-us/answers/questions/4226981/when-i-press-the-right-alt-key-on-my-keyboard-the)</sup>

该键在美国 ANSI 硬件上的缺失也影响了布局设计。反过来，为国际使用而设计的布局将其额外字符放在 AltGr 层上，正是因为该层在 Windows（其中 Ctrl+左 Alt 可作为等效按键组合）和其他系统上都可用。<sup>[20](https://github.com/lunarkbot/keyboard-layouts)</sup>

## References

1. [¿Por qué hay dos botones Alt en el teclado? – DATOS A TUTIPLÉN](https://datosatutiplen.wordpress.com/2025/12/10/por-que-hay-dos-botones-alt-en-el-teclado/)
2. [ROM-DOS manual, Appendix A keyboard layouts note](https://ftp.emacinc.com/Tech_Info/ROMDOS/romdos_manual_62.pdf)
3. [ISO/IEC 9995-2:2009, Keyboard layouts, alphanumeric section (preview)](https://preview.sist.si/sist-preview/51644/fe874182c6274a6a8148fa4f17732968/ISO-IEC-9995-2-2009.pdf)
4. [HID Usage Tables, USB Implementers Forum](https://usb.org/sites/default/files/hut1_5.pdf)
5. [Keyboard, Win32 apps, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/uxguide/inter-keyboard)
6. [xkeyboard-config: How to enhance XKB configuration](https://xkeyboard-config.freedesktop.org/doc/enhancing/)
7. [Why Ctrl+Alt shouldn't be used as a shortcut modifier, The Old New Thing, Raymond Chen](https://devblogs.microsoft.com/oldnewthing/20040329-00/?p=40003)
8. [Keyboard Layout not working for some characters, Microsoft Q&A](https://learn.microsoft.com/en-us/answers/questions/4104382/keyboard-layout-not-working-for-some-characters)
9. [ISO/IEC 9995-1 (FDIS 2025), Keyboard layout principles (preview)](https://standards.iteh.ai/catalog/standards/iso/3f864ad5-f223-46ef-b58e-8af64fd22171/iso-iec-9995-1)
10. [Keyboard Layout and Mapping Reference, IBM Personal Communications](https://www.ibm.com/docs/SSEQ5Y_14.0.0/com.ibm.pcomm.doc/reference/pdf/kbd_referenceV58.pdf)
11. [IBM Enhanced Keyboard for the Personal Computer (ZG87-4014)](https://sharktastica.co.uk/resources/docs/IBM_ZG87-4014_Enhanced_87.pdf)
12. [How to distinguish AltGr and Ctrl+RAlt programmatically, Stack Overflow](https://stackoverflow.com/questions/78398995/how-to-distinguish-altgr-and-ctrlralt-programmatically-osk-exe-does-it-somehow)
13. [German Keyboard Layout Info, kbdlayout.info](https://kbdlayout.info/KBDGR/6.0.6000.16386/overview%2Bnames/VK_SHIFT%2BVK_CONTROL)
14. [Right Alt = AltGr, and AltGr + C = ć (Copilot pop-up), Microsoft Q&A](https://learn.microsoft.com/en-gb/answers/questions/5853289/right-alt-altgr-and-altgr-c-copilot-pup-up)
15. [xkeyboard-config: Contributing](https://xkeyboard-config.pages.freedesktop.org/website/doc/contributing/)
16. [IBM/AIX difference guide on Euro symbol placement per European Commission recommendation](https://www.pik-potsdam.de/~bloh/pdffile/aix43_difference_guide.pdf)
17. [altgr-intl layout, non-English on QWERTY](https://altgr-weur.eu/altgr-intl.html)
18. [Church Slavonic Typography in the Unicode Standard, Unicode Technical Note 41](https://www.unicode.org/notes/tn41/tn41-1.pdf)
19. [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)
20. [US and Russian keyboard layouts with a shared AltGr symbol layer, GitHub](https://github.com/lunarkbot/keyboard-layouts)

---
*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/altgr-key

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