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

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Sat Jun 1 04:32:33 UTC 2019


 sw/source/uibase/docvw/edtwin.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit ccc00b037a7a20dab84255e865ac042d8801df28
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue May 21 17:11:50 2019 -0800
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Sat Jun 1 06:31:59 2019 +0200

    tdf#116460 Update the page number in the statusbar
    
    This patch provides page number update in the status bar while the up/
    down arrow/page keys are held pressed.
    
    Change-Id: I61ac40c781a869eb940f1b863047113fcfa851cf
    Reviewed-on: https://gerrit.libreoffice.org/72713
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index fa96b285c01b..77f8af3ef285 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -2649,6 +2649,11 @@ KEYINPUT_CHECKTABLE_INSDEL:
         }
     }
 
+    // update the page number in the statusbar
+    sal_uInt16 nKey = rKEvt.GetKeyCode().GetCode();
+    if( KEY_UP == nKey || KEY_DOWN == nKey || KEY_PAGEUP == nKey || KEY_PAGEDOWN == nKey )
+        GetView().GetViewFrame()->GetBindings().Update( FN_STAT_PAGE );
+
     // in case the buffered characters are inserted
     if( bFlushBuffer && !m_aInBuffer.isEmpty() )
     {


More information about the Libreoffice-commits mailing list