我配置了我的撰写键成为菜单键如同这个问题。但是,当我按下菜单键时,并没有(或者除了?)获得撰写行为,而是出现了上下文菜单(通常右键单击时出现的菜单)。
现在 Chrome 和 gnome-terminal 中都出现了这种情况,所以我假设这是系统范围内的功能。它在 14.04 中运行良好(不确定 14.10 是否如此)。
如何覆盖/禁用此功能以便我可以使用菜单作为撰写键?
以防万一:我使用的是 Xmonad,而不是 Unity。
xev
菜单键的输出:
KeyPress event, serial 33, synthetic NO, window 0x2800001,
root 0x1d7, subw 0x0, time 49369104, (497,344), root:(1690,368),
state 0x10, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x2800001,
root 0x1d7, subw 0x0, time 49369216, (497,344), root:(1690,368),
state 0x10, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xmodmap
输出:
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
答案1
就像我说的这里,使用此配置:['compose:menu']
在org.gnome.desktop.input-sources
>中xkb-options
。使用 Ubuntu 15.04 和 xmonad 进行测试。
使用以下配置:
% xev
KeyPress event, serial 36, synthetic NO, window 0x1600001,
root 0x233, subw 0x0, time 38683999, (93,83), root:(138,192),
state 0x10, keycode 135 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: True
KeyRelease event, serial 36, synthetic NO, window 0x1600001,
root 0x233, subw 0x0, time 38684071, (93,83), root:(138,192),
state 0x10, keycode 135 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
如果没有此配置:
% xev
KeyPress event, serial 36, synthetic NO, window 0x1600001,
root 0x233, subw 0x0, time 38796879, (476,270), root:(521,379),
state 0x10, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1600001,
root 0x233, subw 0x0, time 38796951, (476,270), root:(521,379),
state 0x10, keycode 135 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False