我需要访问剪贴板上的Extjs Combobox中的keydown事件的数据,以执行某些操作。
我试着用window.clipboardData。 请找到小提琴:https://fiddle.sencha.com/#fiddle/1cc2Extjs6:在Keydown事件的组合框中获取剪贴板数据
Ext.create('Ext.form.field.Tag',{
renderTo:Ext.getBody(),
createNewOnEnter:true,
store:[1,2,3],
enableKeyEvents:true,
listeners:{
keydown:function(combo,e){
if(e.getKey() === e.V && e.ctrlKey){
//get Clipboard data here
combo.preventKeyUpEvent = e.V;
e.stopEvent();
}
}
}
});
感谢您的时间亚历克斯。我想用extjs控制。 –