Bug 160461 - Cannot change PageUp/PageDown keyboard shortcuts
Summary: Cannot change PageUp/PageDown keyboard shortcuts
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 17:36 UTC by Tyler
Modified: 2024-04-03 01:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Tools->Customize dialog (129.22 KB, image/png)
2024-04-01 17:36 UTC, Tyler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler 2024-04-01 17:36:40 UTC
Created attachment 193424 [details]
Tools->Customize dialog

Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
CPU threads: 16; OS: Linux 5.10; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

Hi,

I'd like to take advantage of the fix bug101211 and change the assignment of the PgUp, PgDown, Shift+PgUp, Shift+PgDown shortcuts as follows:

PgUp         -> .uno:GoToStartOfPrevPage    (To Begin of Previous Page)
PgDown       -> .uno:GoToStartOfNextPage    (To Begin of Next Page)
Shift+PgUp   -> .uno:GoToStartOfPrevPageSel (Select to Begin of Previous Page)
Shift+PgDown -> .uno:GoToStartOfNextPageSel (Select to Begin of Next Page)

The UI lets me do this as expected, see attached screenshot. The settings also persist across restarting Writer.

However, when pressing PgUp/PgDown/etc., Writer still calls the default functions (.uno:PageUp/PageDown/PageUpSel/PageDownSel), not my assigned functions above.

This leads me to believe that the default functions (.uno:PageUp/PageDown/PageUpSel/PageDownSel) are still in some way hard-wired to the PgUp/PgDown keys. This hard-wiring should be removed, IMO.

(The tooltips in the "Function" listbox of Tools->Customize->Keyboard still show PgUp/PgDown/etc. for the default functions. I think that's also a sign that the keys are overridden only halfway.)

To reproduce:
- Start Writer with default keyboard shortcuts.
- Load any multi-page document.
- Assign the keys as written above.
- Set single-page display, View->Zoom->Entire Page.
- Scroll to begin of document (Ctrl+Home)
- Hit PgDown.

Observation:
Document scrolls forward by ca. 60% of the viewport height. Page break ends up somewhere in the lower half of the viewport. This is the known behaviour of .uno:PageDown.

Expected:
Document scrolls forward to the next page. Page break is at top edge of viewport. This is the behaviour of .uno:GoToStartOfNextPage.

Regards,
Tyler
Comment 1 m_a_riosv 2024-04-02 01:33:11 UTC
Works fine for me with
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c9d4f99b2bb54ac7735b3e0d0cadbafbd0279518
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded

Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 2 Tyler 2024-04-02 23:21:46 UTC
Apologies, I've confused myself with the half-dozen or so different functions and got bitten by bug160496.

I've now assigned my preferred page movement functions and the assignment works as expected.

Please close as NAB.

Regards,
Tyler