diff options
author | Jim Raykowski <raykowj@gmail.com> | 2019-05-21 17:11:50 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2019-06-01 06:31:59 +0200 |
commit | ccc00b037a7a20dab84255e865ac042d8801df28 (patch) | |
tree | e3de015a862025a13d1e96a05e6049e447deba3a /sw | |
parent | 7272b9f752cb74757d6ed504202eefccc589f804 (diff) |
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@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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() ) { |