From 883fb811e8429707b1895b4add542eda80e77bca Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 24 Aug 2026 10:40:19 +0200 Subject: [PATCH] client: make console message area focusable and prevent editor kbd shortcuts when focused --- CHANGELOG.md | 1 + src/client/editor/index.mjs | 2 +- src/client/ui/ui-console.mjs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b335605b..68cf041e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - MacOs: the app now quits when all windows are closed - launcher: if the Tray icon is enabled, closing the launcher window won't quit the app if the server is running - scrollbar widget: fix initial value in vertical mode + - console: fix copying using CmdOrCtrl+C when the editor is enabled - custom module - objects transmitted using `receive()` will be received as objects by the client app (instead of a json string) diff --git a/src/client/editor/index.mjs b/src/client/editor/index.mjs index 9577cd1e..d7e262f2 100644 --- a/src/client/editor/index.mjs +++ b/src/client/editor/index.mjs @@ -282,7 +282,7 @@ class Editor { if ( this.inspector.helpModalOpened || - e && e.target && e.target.tagName.match(/INPUT|TEXTAREA|SELECT/) + e && e.target && e.target.tagName.match(/INPUT|TEXTAREA|SELECT|OSC-CONSOLE/) ) return if (e) e.preventDefault() diff --git a/src/client/ui/ui-console.mjs b/src/client/ui/ui-console.mjs index ba5caf75..6ab82d36 100644 --- a/src/client/ui/ui-console.mjs +++ b/src/client/ui/ui-console.mjs @@ -17,7 +17,7 @@ class UiConsole extends UiSidePanel { this.header = DOM.get(this.container, 'osc-panel-header')[0] this.header.appendChild(html``) - this.messages = this.content.appendChild(html``) + this.messages = this.content.appendChild(html``) this.inputWrapper = this.content.appendChild(html``) this.input = this.inputWrapper.appendChild(html``)