1.add listener to "ctrl+c"
2.get content from clipboard
3.set the content there where you want to palce
var ctrl = false;
$(function(){
$('.cf').keydown(function(e){
if(e.keyCode==17)
{
ctrl = true;
}
});
$('.cf').keyup(function(e){
if(e.keyCode==17)
{
ctrl = false;
}
if(ctrl && e.keyCode==86)
{
var text = $(this).val();
MyChaiFei(text,$(this));
}
});
})
function MyChaiFei(text,jqobj)
{
jqobj.focus();
jqobj.val(text);
}
<input type="text" class="cf" />
<input type="text" class="cf" />
<input type="text" class="cf" />
<input type="text" class="cf" />