Textual Learning4 -- binding and action

一、绑定BINDINGS

1.1 简单介绍:

BINDINGS是一个简单的三元组,可以连结到行动方法(action)

1.2 注意事项:

bindings类变量应该用全大写 -- BINDINGS

变量应该是所有密钥绑定的列表(全部的BINDINGS都应该写在一个BINDINGS里面)

1.3 组成说明:

按键绑定:键位名,要触发的方法,描述文档

按键名就是某键按下后执行想要的动作

该描述是对密钥绑定应该做什么的描述,并且是可读的

动作名称应该与方法的名称匹配

1.4 英文介绍:

A binding can be something as simple as a triple that connects a key to a method

Write in caps lock at the bindings class variable -- BINDINGS

And this quest variable is supposed to be a list of all of your key bindings

We are going to have a triple which is going to consist of 3 things

        (key, action name, description)

        the description is the description of what the key binding is supposed to do and it is readable

        the action name should match the na

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值