mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
@@ -7280,4 +7280,15 @@ async function screenshot_selection(summonEvent) {
|
|||||||
let endDebt = totalText.indexOf(selectionContent) + selectionContent.length;
|
let endDebt = totalText.indexOf(selectionContent) + selectionContent.length;
|
||||||
|
|
||||||
await showScreenshotWizard(actionComposition, startDebt=startDebt, endDebt=endDebt, totalText);
|
await showScreenshotWizard(actionComposition, startDebt=startDebt, endDebt=endDebt, totalText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$el("#gamescreen").addEventListener("paste", function(event) {
|
||||||
|
// Get rid of rich text, it messes with actions. Not a great fix since it
|
||||||
|
// relies on execCommand but it'll have to do
|
||||||
|
event.preventDefault();
|
||||||
|
document.execCommand(
|
||||||
|
"insertHTML",
|
||||||
|
false,
|
||||||
|
event.clipboardData.getData("text/plain")
|
||||||
|
);
|
||||||
|
});
|
Reference in New Issue
Block a user