Merge branch 'forgejo' into upload_with_path_structure
Some checks failed
Integration tests for the release process / release-simulation (push) Has been cancelled

This commit is contained in:
David Rotermund 2025-06-23 17:23:40 +02:00
commit c3b559b79b
82 changed files with 2730 additions and 512 deletions

View file

@ -121,12 +121,12 @@ class ComboMarkdownEditor {
// Prevent special keyboard handling if currently a text expander popup is open
if (this.textarea.hasAttribute('aria-expanded')) return;
const noModifiers = !e.shiftKey && !e.ctrlKey && !e.altKey;
const noModifiers = !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey;
if (e.key === 'Escape') {
// Explicitly lose focus and reenable tab navigation.
e.target.blur();
this.tabEnabled = false;
} else if (e.key === 'Tab' && this.tabEnabled && !e.altKey && !e.ctrlKey) {
} else if (e.key === 'Tab' && this.tabEnabled && !e.altKey && !e.ctrlKey && !e.metaKey) {
if (this.indentSelection(e.shiftKey, true)) {
this.options?.onContentChanged?.(this, e);
e.preventDefault();

View file

@ -23,6 +23,7 @@ import {initStopwatch} from './features/stopwatch.js';
import {initFindFileInRepo} from './features/repo-findfile.js';
import {initCommentContent, initMarkupContent} from './markup/content.js';
import {initPdfViewer} from './render/pdf.js';
import {initGltfViewer} from './render/gltf.js';
import {initUserAuthOauth2, initUserAuth} from './features/user-auth.js';
import {
@ -187,6 +188,7 @@ onDomReady(() => {
initUserAuth();
initRepoDiffView();
initPdfViewer();
initGltfViewer();
initScopedAccessTokenCategories();
initColorPickers();
});

View file

@ -0,0 +1,6 @@
export async function initGltfViewer() {
const els = document.querySelectorAll('model-viewer');
if (!els.length) return;
await import(/* webpackChunkName: "@google/model-viewer" */'@google/model-viewer');
}