main.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:bbj 作者: desvox 项目源码 文件源码
def keypress(self, size, key):
        keyl = key.lower()
        if key == "enter":
            app.remove_overlays()
            self.callback(self.value(), *self.args)

        elif keyl in ("q", "esc", "ctrl g", "ctrl c"):
            app.remove_overlays()

        elif keyl in ("down", "ctrl n", "n", "j"):
            self.incr("down")

        elif keyl in ("up", "ctrl p", "p", "k"):
            self.incr("up")

        else: # dont use super because we want to allow zeros in this box
            urwid.Edit.keypress(self, (size[0],), key)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号