diff options
author | Jim Raykowski <raykowj@gmail.com> | 2020-12-24 18:50:52 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2020-12-26 17:07:56 +0100 |
commit | 4abcdc50064aba00307f13f574c9116c6a2e4886 (patch) | |
tree | 419b009d85584b0983d32d5311e4f7bdd88268a5 /sw | |
parent | f6ba6fc1adde356a88f5e3f91a013aaf3015a55a (diff) |
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@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
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") { |