一、绑定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

最低0.47元/天 解锁文章
5912

被折叠的 条评论
为什么被折叠?



