
var el = Ext.getBody(); |
function fn1() { |
Ext.Msg.alert("提示", "按下了ctrl+1键"); |
} |
el.addKeyMap({ key: "1", ctrl: true, fn: fn1, scope: el }); |
实际getBody无参数时返回自己这个element. |
https://blog.csdn.net/tctc_2/article/details/7603668 |



