From 2f77abc3795c2d6fb619888f6527a616b1f65f45 Mon Sep 17 00:00:00 2001 From: one-lithe-rune Date: Sat, 24 Jun 2023 22:30:28 +0100 Subject: [PATCH] UI/App - Allow text selection * 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)