Quick add to bookmarks : Add "Paste" to ShellInABox (move the link to bookmarks)
Usage: Use CTRL + V while press and hold the mouse left button. Click bookmark once when connect to gui.
Code:
document.onpaste = function(event){
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
for (index in items) {
var item = items[index];
if ((item.kind === 'string') && (item.type.match('^text/plain'))){
item.getAsString( function(str){
str = str.replace(/\r/g, '');
window.shellinabox.keysPressed(str);
});
}
}
}