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

Wat*_*oul 7 windows linux keyboard virtualbox xorg

我在使用非英文美式键盘的键盘时遇到问题。似乎在这种情况下,按 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, synthetic NO, window 0x4000001,
    root 0x108, subw 0x0, time 4346182, (158,441), root:(163,557),
    state 0x2014, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

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

KeyRelease event, serial 33, synthetic NO, window 0x4000001,
    root 0x108, subw 0x0, time 4347384, (158,441), root:(163,557),
    state 0x2090, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Run Code Online (Sandbox Code Playgroud)

我的键盘布局是French Canadian。我在 Gnome 桌面上使用 CentOS 6.4,并且键盘布局选项的“选择第 3 级的键”部分没有可用的左控制

谢谢^^;

小智 3

这发生在我身上,这就是我所做的:

In the Oracle VM Virtualbox Manager (where you see the VM's  you have)
File
Preferences
Input
Disable 'auto capture keyboard'. 
Run Code Online (Sandbox Code Playgroud)