vcl/source/window/window.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit f874145008f93b0c4bd14b467f29368edfa7eb70
Author: Henry Castro <[email protected]>
AuthorDate: Thu Nov 27 07:34:01 2025 -0400
Commit: Henry Castro <[email protected]>
CommitDate: Mon Dec 15 18:40:30 2025 +0100
lok: add "can_focus" property dump
Some UI controls should not receive focus on the client side.
Change-Id: I1128d027f89455b6c48e52bcecd426d3c26212c7
Signed-off-by: Henry Castro <[email protected]>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194700
Tested-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195662
Tested-by: Jenkins
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index edff345c6ab0..ccf97442ceb3 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3375,6 +3375,7 @@ void Window::DumpAsPropertyTree(tools::JsonWriter&
rJsonWriter)
rJsonWriter.put("type", GetTypeName());
rJsonWriter.put("text", GetText());
rJsonWriter.put("enabled", IsEnabled());
+ rJsonWriter.put("canFocus", bool(GetStyle() & WB_TABSTOP));
if (!IsVisible())
rJsonWriter.put("visible", false);