vcl/source/control/button.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit d131cd35103c54cdcfa2ea75dfc9aa3d4fdf315d Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Fri Dec 10 18:47:29 2021 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Dec 30 12:30:00 2021 +0100
jsdialog: send default button state Change-Id: Ida7e9ce598d1fe45e793184ced7f5874e6956e84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126648 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Mert Tumer <mert.tu...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127733 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 2eae233d5c7c..e6e731f79ee5 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -593,6 +593,9 @@ void Button::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) rJsonWriter.put("image", aBuffer.makeStringAndClear()); } } + + if (GetStyle() & WB_DEFBUTTON) + rJsonWriter.put("has_default", true); } IMPL_STATIC_LINK( Button, dispatchCommandHandler, Button*, pButton, void )