sfx2/source/control/unoctitm.cxx |   30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

New commits:
commit 5266c1b215263029fe9b35e5365df65d116edf64
Author:     Gökay Şatır <gokaysa...@gmail.com>
AuthorDate: Fri Mar 22 13:34:38 2024 +0300
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Apr 3 12:48:41 2024 +0200

    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>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165733
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index d81b191d8623..23a370a4240f 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);

Reply via email to