默认情况下,在 Ubuntu 中,当处于关闭状态时,我可以按Shift+Home来选择从插入符号到字符串开头的内容。但如果在这种情况下我只按,它将输入 1 而不是将插入符号移动到字符串开头,考虑到 处于关闭状态,这是预期的行为。要使用 ,我需要打开。NumLockHomeNumLockHomeNumLock
Shift那么 - 当执行+Home并且Home不需要改变状态时,如何将其更改为 Microsoft 默认值NumLock?
我已经发现了这个问题: XUbuntu:让 Shift+NumPad 像 Windows 一样工作
但这无济于事。我的/etc/default/keyboard
文件现在看起来是:
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="numpad:microsoft"
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
UPD 我还发现登录屏幕上的Home/ Shift+Home可以正常工作!