关于左 Alt 被 keyboard-configuration 过滤掉的事

创建于 2166 / 约需 10 分钟

本文距离上次更新已经超过 1000 天。因此,其中的信息可能已经过时。


在一次偶然的 Ubuntu 软件包更新时,我被要求对 keyboard-configuration 进行配置。当时不太了解配置的具体内容,遂把软件包名记了下来以便回滚更改。

一段时间之内都是平安无事,直到我发现我的键盘上左 Alt 不好用了。具体表现是 Ubuntu 对我的左 Alt 完全不回应。我以为键盘坏了,所幸的是在 Windows 下的测试中左 Alt 并没有问题。当时我就想到了那个配置。

运行 sudo dpkg-reconfigure keyboard-configuration,其中有这样一个设定:

 ┌─────────────────────┤Configuring keyboard-configuration ├─────────────────────┐
 │ With some keyboard layouts, AltGr is a modifier key used to input some        │ 
 │ characters, primarily ones that are unusual for the language of the keyboard  │ 
 │ layout, such as foreign currency symbols and accented letters. These are      │ 
 │ often printed as an extra symbol on keys.                                     │ 
 │                                                                               │ 
 │ Key to function as AltGr:                                                     │ 
 │                                                                               │ 
 │                     The default for the keyboard layout                       │ 
 │                     No AltGr key                                              │ 
 │                     Right Alt (AltGr)                                         │ 
 │                     Right Control                                             │ 
 │                     Right Logo key                                            │ 
 │                     Menu key                                                  │ 
 │                     Left Alt                                                  │ 
 │                     Left Logo key                                             │ 
 │                     Keypad Enter key                                          │ 
 │                     Both Logo keys                                            │ 
 │                     Both Alt keys                                             │ 
 │                                                                               │ 
 │                                                                               │ 
 │                     <Ok>                         <Cancel>                     │ 

在这里选择 No AltGr key,其它配置不必改动,待 initramfs 生成之后重启即可。


LIKE 本文

Webmention 回应

本文暂无回应。