From eaa49cce1742216a77f82c2a88357ade534b63be Mon Sep 17 00:00:00 2001 From: Stefan Kapusniak <121311569+one-lithe-rune@users.noreply.github.com> Date: Mon, 26 Jun 2023 10:16:53 +0100 Subject: [PATCH] UI/App - Allow text selection (#1593) * When run in app mode on windows, allows selection of text from non-input controls, which is the same behaviour as web mode. --- apps/stable_diffusion/web/index.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/stable_diffusion/web/index.py b/apps/stable_diffusion/web/index.py index e25e6a4e1d..7cfcf3cc49 100644 --- a/apps/stable_diffusion/web/index.py +++ b/apps/stable_diffusion/web/index.py @@ -30,7 +30,11 @@ def launch_app(address): width = window.winfo_screenwidth() height = window.winfo_screenheight() webview.create_window( - "SHARK AI Studio", url=address, width=width, height=height + "SHARK AI Studio", + url=address, + width=width, + height=height, + text_select=True, ) webview.start(private_mode=False)