vcl/source/window/window.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 75d868630a20fb6d582924ddbaaaf007dbd46873
Author:     Henry Castro <[email protected]>
AuthorDate: Thu Nov 27 07:34:01 2025 -0400
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Nov 28 11:39:50 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]>

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 960a83383a16..78a6a63f5d5b 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3376,6 +3376,7 @@ void Window::DumpAsPropertyTree(tools::JsonWriter& 
rJsonWriter)
     rJsonWriter.put("text", GetText());
     rJsonWriter.put("enabled", IsEnabled());
     rJsonWriter.put("lokWindowId", GetLOKWindowId());
+    rJsonWriter.put("canFocus", bool(GetStyle() & WB_TABSTOP));
     if (!IsVisible())
         rJsonWriter.put("visible", false);
 

Reply via email to