Bug 148986 - Support the "XF86Forward" and "XF86Back" presenter mouse / remote clicker shortcuts to move between slides in presentation mode
Summary: Support the "XF86Forward" and "XF86Back" presenter mouse / remote clicker sho...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium enhancement
Assignee: Gabor Kelemen (allotropia)
URL:
Whiteboard: target:24.2.0
Keywords:
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2022-05-08 16:09 UTC by Jeff Fortin Tam
Modified: 2023-12-06 15:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin Tam 2022-05-08 16:09:00 UTC
I have two clickers, one is a Targus PAUM30, the other is a Microsoft "Wireless Notebook Presenter Mouse 8000" (model 1065). The Microsoft one feels much nicer to use, but its shortcuts are not properly handled by LibreOffice Impress.

According to the `xev` command, as tested under Xorg with Fedora 35, when pressing the previous/next buttons on a Microsoft presenter mouse 8000, it emits:

```
    KeyPress event, serial 40, synthetic NO, window 0x5200001,
        root 0x31f, subw 0x0, time 527729954, (68,276), root:(662,604),
        state 0x10, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False

    KeyPress event, serial 37, synthetic NO, window 0x5200001,
        root 0x31f, subw 0x0, time 527722534, (68,276), root:(662,604),
        state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
```

...but LibreOffice Impress doesn't understand those shortcuts, and thus doesn't go from one slide to another in presenter mode.
In comparison, the Targus PAUM30 clicker / presenter remote, whose button presses LibreOffice Impress understands, emits these:

```
    KeyRelease event, serial 38, synthetic NO, window 0x5200001,
        root 0x31f, subw 0x5200002, time 528029747, (35,52), root:(629,380),
        state 0x10, keycode 117 (keysym 0xff56, Next), same_screen YES,
        XLookupString gives 0 bytes: 
        XFilterEvent returns: False

    KeyPress event, serial 38, synthetic NO, window 0x5200001,
        root 0x31f, subw 0x5200002, time 528031339, (35,52), root:(629,380),
        state 0x10, keycode 112 (keysym 0xff55, Prior), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
```

So my request is for LibreOffice to support the "XF86Forward" and "XF86Back" shortcuts just as well as the "Next" and "Prior" shortcuts to move between slide in presentation mode (or even in editing mode, possibly).


P.s.:

* Both devices also have play/pause / screen switching shortcuts, but I was not able to clearly determine what they are using xev
* I used the xev command to test simply because I don't know what the Wayland equivalent would be...?
Comment 1 Gabor Kelemen (allotropia) 2023-11-14 23:25:31 UTC
Confirming. I have a clicker device (ISY IP1000) that creates the same keycodes.
Comment 2 Gabor Kelemen (allotropia) 2023-12-03 23:49:33 UTC
Proposed patch: https://gerrit.libreoffice.org/c/core/+/160255
Comment 3 Commit Notification 2023-12-06 14:52:15 UTC
Gabor Kelemen committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9e8df5bfe804943a8662b52ff2afed936b79657d

tdf#148986 Support XF86Forward / XF86Back key events

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Gabor Kelemen (allotropia) 2023-12-06 15:10:54 UTC
This is now fixed on Linux/Windows, but not for MAC.