[Libreoffice-commits] core.git: sw/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Sat Dec 26 16:08:33 UTC 2020


 sw/source/uibase/utlui/navipi.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 4abcdc50064aba00307f13f574c9116c6a2e4886
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Thu Dec 24 18:50:52 2020 -0900
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Sat Dec 26 17:07:56 2020 +0100

    Return focus to edit window
    
    commit 797915bf0bc0ed82c3cf58b7bd03c42d3335ca18 prevents focus from
    returning to the edit window when Navigate by previous or next buttons
    in the Navigator tool box are pressed. This may be nice for activation
    of the button by keyboard as it keeps focus on the button, but it
    doesn't allow for cursor indication of the navigated position in the
    edit window.
    
    Change-Id: I0067ee7d80aa94a510c83a52c22f788ba4a03dc6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108276
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 3ce2de5d4937..725e4257ee14 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -204,10 +204,7 @@ IMPL_LINK(SwNavigationPI, ToolBoxSelectHdl, const OString&, rCommand, void)
         bool *pbNext = new bool(true);
         if (rCommand == ".uno:ScrollToPrevious")
             *pbNext = false;
-        const bool bEnabled = pView->GetEditWin().IsEnabled();
-        pView->GetEditWin().Enable(false); // prevent edit window from grabbing focus
         pView->MoveNavigationHdl(pbNext);
-        pView->GetEditWin().Enable(bEnabled);
     }
     else if (rCommand == "root")
     {


More information about the Libreoffice-commits mailing list