一時停止/中断キーを押しても「xev」に達しないのはなぜですか?

一時停止/中断キーを押しても「xev」に達しないのはなぜですか?

私はxfceを実行しており、私が知っている限り、一時停止キーはショートカットにマップされません。一時停止キーを押すと、次のようになります。

FocusOut event, serial 37, synthetic NO, window 0x3000001,
    mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 37, synthetic NO, window 0x3000001,
    mode NotifyUngrab, detail NotifyPointer

FocusIn event, serial 37, synthetic NO, window 0x3000001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   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   0   0   0   0   

一時停止キーを次のようにまったく別のキーに再マップしても構いません。

    key <PAUS> {
//  type= "PC_CONTROL_LEVEL2",
    symbols[Group1]= [           p,           Break ]
    };

Shift+Pause を押すと、次の応答が表示されます。

KeyPress event, serial 37, synthetic NO, window 0x3000001,
    root 0x1ef, subw 0x0, time 679325549, (37,115), root:(1228,774),
    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 37, synthetic NO, window 0x3000001,
    root 0x1ef, subw 0x0, time 679325877, (37,115), root:(1228,774),
    state 0x1, keycode 127 (keysym 0xff6b, Break), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3000001,
    root 0x1ef, subw 0x0, time 679325901, (37,115), root:(1228,774),
    state 0x1, keycode 127 (keysym 0xff6b, Break), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3000001,
    root 0x1ef, subw 0x0, time 679326061, (37,115), root:(1228,774),
    state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

移動されていない一時停止キーがxevに到達できないのはなぜですか?

ベストアンサー1

FocusInイベントは、FocusOut他のアプリケーション(ウィンドウマネージャ、デスクトップの他の部分、まったく異なるアプリケーション)がXサーバーに特定のキーに対する関心を登録したため、これらのイベントを盗んでいることを示します。

したがって、xfceでは「ショートカットにマッピング」されないことがありますが、一部のアプリケーションはまだそれに反応しようとしています。

この問題をデバッグする明確な方法は、再実行するまでアプリケーションを停止/終了することですxev。の出力はxlsclients候補を識別するのに役立ちます。

おすすめ記事