mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
use ctrl+alt+click for breakpoints
This commit is contained in:
@ -395,7 +395,7 @@ export class QuickReply {
|
||||
message.dispatchEvent(new Event('input', { bubbles:true }));
|
||||
};
|
||||
message.addEventListener('pointerup', async(evt)=>{
|
||||
if (!evt.ctrlKey) return;
|
||||
if (!evt.ctrlKey || !evt.altKey || message.selectionStart != message.selectionEnd) return;
|
||||
const parser = new SlashCommandParser();
|
||||
parser.parse(message.value, false);
|
||||
const cmdIdx = parser.commandIndex.findLastIndex(it=>it.start <= message.selectionStart && it.end >= message.selectionStart);
|
||||
|
Reference in New Issue
Block a user