beta #12

Merged
didirus merged 74 commits from beta into release 2025-07-26 09:49:03 +00:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 6fb125cf0f - Show all commits

View File

@@ -511,7 +511,7 @@ interface MessagePart {
function handleKeybinds(event: KeyboardEvent) {
const focusedActionIndex = ref<number | null>(null);
return handleKeybind(
handleKeybind(
event,
{
project: props.project,
@@ -1005,6 +1005,8 @@ async function generateMessage() {
loadingMessage.value = true;
router.push(`/${props.project.project_type}/${props.project.slug}/moderation`);
try {
const baseMessage = await assembleFullMessage();
let fullMessage = baseMessage;

View File

@@ -99,7 +99,13 @@ export function handleKeybind(
ctx: ModerationContext,
keybinds: KeybindListener[],
): boolean {
if (event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement) {
if (
event.target instanceof HTMLInputElement ||
event.target instanceof HTMLTextAreaElement ||
(event.target as HTMLElement)?.closest('.cm-editor') ||
(event.target as HTMLElement)?.classList?.contains('cm-content') ||
(event.target as HTMLElement)?.classList?.contains('cm-line')
) {
return false
}