V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
l0wkey
V2EX  ›  macOS

Yosemite 之后,在终端内外接键盘的小键盘无法输入

  •  
  •   l0wkey · 2014-11-23 23:48:15 +08:00 · 4166 次点击
    这是一个创建于 3457 天前的主题,其中的信息可能已经有所发展或是发生改变。
    升级 10.10 之后,在终端内就无法使用外接键盘的小键盘了。。
    安装有:oh-my-zsh
    同事使用默认 bash 就没问题,小键盘可以正常输入。
    有人遇到过一样问题么?如何解决的呢?还是说这个暂时无解...
    5 条回复    2014-11-24 10:26:58 +08:00
    gateswong
        1
    gateswong  
       2014-11-24 06:29:08 +08:00
    默默的试了一下,真是这样
    geeti
        2
    geeti  
       2014-11-24 08:21:28 +08:00
    .zshrc里边加入:
    ############
    # Keypad
    # 0 . Enter
    bindkey -s "^[Op" "0"
    bindkey -s "^[Ol" "."
    bindkey -s "^[OM" "^M"
    # 1 2 3
    bindkey -s "^[Oq" "1"
    bindkey -s "^[Or" "2"
    bindkey -s "^[Os" "3"
    # 4 5 6
    bindkey -s "^[Ot" "4"
    bindkey -s "^[Ou" "5"
    bindkey -s "^[Ov" "6"
    # 7 8 9
    bindkey -s "^[Ow" "7"
    bindkey -s "^[Ox" "8"
    bindkey -s "^[Oy" "9"
    # + - * /
    bindkey -s "^[Ok" "+"
    bindkey -s "^[Om" "-"
    bindkey -s "^[Oj" "*"
    bindkey -s "^[Oo" "/"
    #############
    nikolai
        3
    nikolai  
       2014-11-24 09:32:57 +08:00   ❤️ 2
    取消这个:

    bearzx
        4
    bearzx  
       2014-11-24 09:40:21 +08:00
    新系统出了是不是得等它稳定个一年再更新。。。
    l0wkey
        5
    l0wkey  
    OP
       2014-11-24 10:26:58 +08:00
    @nikolai Thx!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2896 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:58 · PVG 19:58 · LAX 04:58 · JFK 07:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.