mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-23 07:51:18 +01:00
Fix shift+click in chat manager
This commit is contained in:
parent
917a994ca8
commit
a13d3f643c
@ -609,8 +609,9 @@ export function initBookmarks() {
|
|||||||
|
|
||||||
$(document).on('click', '.select_chat_block, .mes_bookmark', async function (e) {
|
$(document).on('click', '.select_chat_block, .mes_bookmark', async function (e) {
|
||||||
// If shift is held down, we are not following the bookmark, but creating a new one
|
// If shift is held down, we are not following the bookmark, but creating a new one
|
||||||
if (e.shiftKey) {
|
const mes = $(this).closest('.mes');
|
||||||
const selectedMesId = $(this).closest('.mes').attr('mesid');
|
if (e.shiftKey && mes.length) {
|
||||||
|
const selectedMesId = mes.attr('mesid');
|
||||||
await createNewBookmark(Number(selectedMesId));
|
await createNewBookmark(Number(selectedMesId));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user