我在使用非英語美式鍵盤時遇到問題。似乎在這種情況下,按 AltGr 鍵將模擬 Windows 上的 CTRL + ALT。我已經使用 Windows 螢幕鍵盤驗證了這一事實,其中按 AltGr 會突出顯示 Control 和 Alt。
我不想嘗試更改 Windows 行為,這會很乏味,因為我使用的是兩層 Windows(使用 RDP 從 Windows 遠端處理到遠端 Windows 主機,然後使用 Linux VM Guest),我想將 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
我的鍵盤佈局是法語加拿大人。我正在使用帶有 Gnome 桌面的 CentOS 6.4,鍵盤佈局選項中的“選擇第三級的鍵”部分沒有左控制可以在其中找到。
謝謝^^;
答案1
這發生在我身上,這就是我所做的:
In the Oracle VM Virtualbox Manager (where you see the VM's you have)
File
Preferences
Input
Disable 'auto capture keyboard'.