mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-07-02 18:00:03 +02:00
Merge branch 'forgejo' into upload_with_path_structure
Some checks failed
Integration tests for the release process / release-simulation (push) Has been cancelled
Some checks failed
Integration tests for the release process / release-simulation (push) Has been cancelled
This commit is contained in:
commit
c3b559b79b
82 changed files with 2730 additions and 512 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
6
web_src/js/render/gltf.js
Normal file
6
web_src/js/render/gltf.js
Normal 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');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue