最近的更改导致 Shift+Space 什么也不做

Naf*_*Kay 5 x11 keyboard-layout

多年来,在 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
Run Code Online (Sandbox Code Playgroud)

有趣的是,Caps Lock也引发了这个问题。当Caps Lock订婚时,Space什么都不做。

F. *_*uri 3

xmodmapxev

您可以使用xmodmap转储或修改键盘映射:

xmodmap -pke | grep space
keycode  65 = space NoSymbol space
Run Code Online (Sandbox Code Playgroud)

您可以用来xev观看键盘事件

xev
Run Code Online (Sandbox Code Playgroud)

您可以尝试修改键盘映射:

 xmodmap -e 'keycode 65 = space space space space'
Run Code Online (Sandbox Code Playgroud)

这可能有效,但警告!玩弄xmodmap可能会让你陷入糟糕的境地!登录后立即尝试此操作,并准备好强制结束会话(和/或阅读详细手册)。

以这种方式使用 xmodmap 不会在X-sessions之间存储您的配置。IE 每次登录时都必须发出相同的命令。