V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
honmaple
V2EX  ›  问与答

怎么显示正确的键盘名称?

  •  
  •   honmaple · May 7, 2016 · 1504 views
    This topic created in 3643 days ago, the information mentioned may be changed or developed.

    比如linux
    -:minus
    win:super
    下一曲:XF86AudioNext
    esc:Escape
    等,虽然平时能说出是什么键,但是怎么知道该键正确的名称?
    linux , win,mac 下都有不同,如果能同时提供就更好了,谢谢

    1 replies    2016-05-07 13:20:00 +08:00
    Testalias
        1
    Testalias  
       May 7, 2016
    xev 按你想要的按键信息
    xmodmap 可以显示和更改当前键盘的映射
    /usr/include/X11/keysymdef.h 存放着 X11 的按键规范
    其他发行版可能稍有区别
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5130 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:58 · PVG 11:58 · LAX 20:58 · JFK 23:58
    ♥ Do have faith in what you're doing.