小编Wat*_*oul的帖子

使用 Windows 作为 VirtualBox 主机,如何在 linux 来宾上获得 AltGr 行为?

我在使用非英文美式键盘的键盘时遇到问题。似乎在这种情况下,按 AltGr 键将模拟 Windows 上的 CTRL + ALT。我已经使用 Windows 的屏幕键盘验证了这一事实,其中按 AltGr 会突出显示 Control 和 Alt。

与其尝试更改 Windows 行为,这会很乏味,因为我使用的是两层 Windows(使用 RDP 从 Windows 远程处理到远程 Windows 主机,然后使用 Linux VM 来宾),我想将 linux 键盘映射更改为了解我的 level3 键开关是 Control_L + ISO_Level3_Shift。

使用 xev 时,我得到以下用于按下和释放 AltGr 的输出:

KeyPress event, serial 33, synthetic NO, window 0x4000001,
    root 0x108, subw 0x0, time 4346182, (158,441), root:(163,557),
    state 0x2010, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 33, …
Run Code Online (Sandbox Code Playgroud)

windows linux keyboard virtualbox xorg

7
推荐指数
1
解决办法
3909
查看次数

标签 统计

keyboard ×1

linux ×1

virtualbox ×1

windows ×1

xorg ×1