Combox里, Ctrl+V是没问题, 但是鼠标右键复制, 是不响应的.
客户纠结, 困扰许久, 各种百度, 分享如下
主要就是调用keyHandler.query, 在参数和监听上饶了一些弯路. 具体不解释了, 直接看代码吧.
$('.combobox-f').next().children(':text').bind('paste', function(e){
var ComboElement = $(this).parent().prev();
var q = e.originalEvent.clipboardData.getData('text');
ComboElement.combobox('showPanel').combobox('options').keyHandler.query.call(ComboElement[0], q, e);
});