多年来,在 Ubuntu 衍生品上(现在在 12.04 衍生品上),我已经能够Shift在打字时按住该键输入全大写字母,而无需在需要点击时将其删除Space。
不过,在过去一周左右的时间里,Shift+Space没有做任何事情,破坏了我的打字。
我怎样才能让Shift+Space插入一个正常的Space功能,就像多年来的功能一样?
我在 Elementary Luna 上使用 Dvorak 布局的蓝牙 Apple 无线键盘。我已经在笔记本电脑的主键盘上进行了测试,问题仍然存在,并且我注意到运行 Elementary Luna 的其他计算机上也存在此问题。
以下是xev
尝试组合键的输出:
Outer window is 0x6600001, inner window is 0x6600002
PropertyNotify event, serial 8, synthetic NO, window 0x6600001,
atom 0x27 (WM_NAME), time 1502279833, state PropertyNewValue
PropertyNotify event, serial 9, synthetic NO, window 0x6600001,
atom 0x22 (WM_COMMAND), time 1502279833, state PropertyNewValue
PropertyNotify event, serial 10, synthetic NO, window 0x6600001,
atom 0x28 (WM_NORMAL_HINTS), time 1502279833, state PropertyNewValue
CreateNotify event, serial 11, synthetic NO, window 0x6600001,
parent 0x6600001, window 0x6600002, (10,10), width 50, height 50
border_width 4, override NO
PropertyNotify event, serial 14, synthetic NO, window 0x6600001,
atom 0x15b (WM_PROTOCOLS), time 1502279834, state PropertyNewValue
MapNotify event, serial 15, synthetic NO, window 0x6600001,
event 0x6600001, window 0x6600002, override NO
ConfigureNotify event, serial 23, synthetic NO, window 0x6600001,
event 0x6600001, window 0x6600001, (0,0), width 178, height 178,
border_width 0, above 0x6400003, override NO
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x1f1 (_NET_WM_ALLOWED_ACTIONS), time 1502279847, state PropertyNewValue
ReparentNotify event, serial 23, synthetic NO, window 0x6600001,
event 0x6600001, window 0x6600001, parent 0xf4517d,
(0,0), override NO
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x163 (_NET_WM_DESKTOP), time 1502279850, state PropertyNewValue
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x163 (_NET_WM_DESKTOP), time 1502279850, state PropertyNewValue
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x160 (_NET_FRAME_EXTENTS), time 1502279850, state PropertyNewValue
ConfigureNotify event, serial 23, synthetic NO, window 0x6600001,
event 0x6600001, window 0x6600001, (10,30), width 178, height 178,
border_width 0, above 0x0, override NO
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x18e (WM_STATE), time 1502279850, state PropertyNewValue
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x169 (_NET_WM_STATE), time 1502279850, state PropertyNewValue
ConfigureNotify event, serial 23, synthetic YES, window 0x6600001,
event 0x6600001, window 0x6600001, (-1,66), width 178, height 178,
border_width 2, above 0x0, override NO
MapNotify event, serial 23, synthetic NO, window 0x6600001,
event 0x6600001, window 0x6600001, override NO
VisibilityNotify event, serial 23, synthetic NO, window 0x6600001,
state VisibilityUnobscured
Expose event, serial 23, synthetic NO, window 0x6600001,
(0,0), width 178, height 10, count 3
Expose event, serial 23, synthetic NO, window 0x6600001,
(0,10), width 10, height 58, count 2
Expose event, serial 23, synthetic NO, window 0x6600001,
(68,10), width 110, height 58, count 1
Expose event, serial 23, synthetic NO, window 0x6600001,
(0,68), width 178, height 110, count 0
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x169 (_NET_WM_STATE), time 1502279855, state PropertyNewValue
FocusIn event, serial 23, synthetic NO, window 0x6600001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 23, synthetic NO, window 0x0,
keys: 4294967265 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x169 (_NET_WM_STATE), time 1502279855, state PropertyNewValue
PropertyNotify event, serial 23, synthetic NO, window 0x6600001,
atom 0x196 (XKLAVIER_STATE), time 1502279857, state PropertyNewValue
KeyRelease event, serial 28, synthetic NO, window 0x6600001,
root 0xed, subw 0x0, time 1502279871, (1355,447), root:(1356,515),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
XLookupString gives 1 bytes: (0d) ""
XFilterEvent returns: False
PropertyNotify event, serial 28, synthetic NO, window 0x6600001,
atom 0x169 (_NET_WM_STATE), time 1502279881, state PropertyNewValue
PropertyNotify event, serial 32, synthetic NO, window 0x6600001,
atom 0x1ea (_NET_WM_ICON_GEOMETRY), time 1502279914, state PropertyNewValue
KeyPress event, serial 33, synthetic NO, window 0x6600001,
root 0xed, subw 0x0, time 1502281345, (1355,447), root:(1356,515),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 33, synthetic NO, window 0x6600001,
root 0xed, subw 0x0, time 1502281545, (1355,447), root:(1356,515),
state 0x1, keycode 65 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x6600001,
root 0xed, subw 0x0, time 1502281632, (1355,447), root:(1356,515),
state 0x1, keycode 65 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x6600001,
root 0xed, subw 0x0, time 1502281770, (1355,447), root:(1356,515),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 33, synthetic NO, window 0x6600001,
mode NotifyNormal, detail NotifyNonlinear
PropertyNotify event, serial 33, synthetic NO, window 0x6600001,
atom 0x169 (_NET_WM_STATE), time 1502285447, state PropertyNewValue
有趣的是,Caps Lock也会引发问题。当Caps Lock订婚时,Space什么也不做。
答案1
xmodmap
和xev
您可以使用xmodmap
转储或修改键盘映射:
xmodmap -pke | grep space
keycode 65 = space NoSymbol space
您可以用来xev
观看键盘事件
xev
您可以尝试修改键盘映射:
xmodmap -e 'keycode 65 = space space space space'
这可能有效,但警告!玩弄xmodmap
可能会让你陷入糟糕的境地!登录后立即尝试此操作,并准备好强制结束会话(和/或阅读详细手册)。
以这种方式使用 xmodmap 不会在之间存储您的配置X-会话。 IE 每次登录时都必须发出相同的命令。
答案2
好吧,Elementary 再次做出了决定,再次打破了它。
进入系统设置:
转到键盘
转到“通用访问”下的“快捷方式”选项卡,然后将“下一个键盘布局”修改器更改为更难点击的内容,例如 Ctrl+Alt+Shift+Super+Space,就像老板一样。
顺便说一句,“选项”中的任何内容都不起作用,因此 Shift+CapsLock 不起作用,尽管它应该起作用。你的里程可能会有所不同,但我今天杀死了一条强大的龙。