login界面美化

This commit is contained in:
life
2015-03-05 00:22:32 +08:00
parent 9681486db2
commit d2211bc482
5 changed files with 202 additions and 59 deletions

View File

@@ -1383,4 +1383,20 @@ var ContextTips = {
}
};
function commonCmd(e) {
var num = e.which ? e.which : e.keyCode;
// copy, paste
if(e.ctrlKey || e.metaKey) {
if(num == 67) { // ctrl + c
document.execCommand('copy');
} else if(num == 86) { // ctrl + v
document.execCommand('paste');
} else if(num == 65) { // ctrl + a
document.execCommand('selectAll');
} else if(num == 88) { // ctrl + x
document.execCommand('cut');
}
}
};
ContextTips.init();