sfx2/source/control/unoctitm.cxx | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-)
New commits: commit 38baaed9c11a65bda4079274a3d73bbd7035af7c Author: Gökay Şatır <gokaysa...@gmail.com> AuthorDate: Fri Mar 22 13:34:38 2024 +0300 Commit: Gökay ŞATIR <gokaysa...@collabora.com> CommitDate: Fri Mar 22 12:37:57 2024 +0100 Allow more uno commands in readonly view mode. So user can use keyboard for selection. Signed-off-by: Gökay Şatır <gokaysa...@gmail.com> Change-Id: Ic7812c88110da9fbefe86d145f921e48360b4f34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165157 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 59d51a8c3cf1..3e2a3f125cfd 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -547,7 +547,35 @@ static bool isCommandAllowedForViewType(const OUString& command) u"CopyHyperlinkLocation"_ustr, u"ExportDirectToPDF"_ustr, u"ExportToPDF"_ustr, - u"ExportToEPUB"_ustr + u"ExportToEPUB"_ustr, + u"CharRightSel"_ustr, + u"CharLeftSel"_ustr, + u"WordRightSel"_ustr, + u"WordLeftSel"_ustr, + u"EndOfParaSel"_ustr, + u"StartOfParaSel"_ustr, + u"GoRight"_ustr, + u"GoLeft"_ustr, + u"GoToNextWord"_ustr, + u"GoToPrevWord"_ustr, + u"GoToNextPara"_ustr, + u"GoToStartOfPara"_ustr, + u"GoUp"_ustr, + u"GoDown"_ustr, + u"GoRightSel"_ustr, + u"GoLeftSel"_ustr, + u"GoUpSel"_ustr, + u"GoDownSel"_ustr, + u"GoLeftToStartOfData"_ustr, + u"GoRightToEndOfData"_ustr, + u"GoToStart"_ustr, + u"GoToEndOfData"_ustr, + u"GoUpToStartOfData"_ustr, + u"GoDownToEndOfData"_ustr, + u"GoLeftToStartOfDataSel"_ustr, + u"GoRightToEndOfDataSel"_ustr, + u"GoUpToStartOfDataSel"_ustr, + u"GoDownToEndOfDataSel"_ustr }; bool allowed = std::find(std::begin(allowedCommandList), std::end(allowedCommandList), command) != std::end(allowedCommandList);