diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2023-12-03 11:07:23 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2023-12-06 15:51:42 +0100 |
commit | 9e8df5bfe804943a8662b52ff2afed936b79657d (patch) | |
tree | befcc382afc0f30ea3e663c002e13b262d7d65b3 /sd | |
parent | 5de53775531a358c6775d265a3a19699c96a8139 (diff) |
tdf#148986 Support XF86Forward / XF86Back key events
Multimedia keys found on certain presentation clicker devices.
Not added to the Customize dialog, as that was not yet asked for.
As I have no access to a MAC, did not add support for that in vcl.
Inspiration for code taken from
commit ca74511985981444dbd72ade7244484c131e36a7
Change-Id: I417e6ba7e79c5f6e774a56ba747803a156d5f50f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160255
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/console/PresenterController.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/console/PresenterController.cxx b/sd/source/console/PresenterController.cxx index 2a0e6d25aa47..7bb137d8c03b 100644 --- a/sd/source/console/PresenterController.cxx +++ b/sd/source/console/PresenterController.cxx @@ -845,6 +845,7 @@ void SAL_CALL PresenterController::keyReleased (const awt::KeyEvent& rEvent) case awt::Key::RIGHT: case awt::Key::SPACE: case awt::Key::DOWN: + case awt::Key::XF86FORWARD: if (mxSlideShowController.is()) { mxSlideShowController->gotoNextEffect(); @@ -864,6 +865,7 @@ void SAL_CALL PresenterController::keyReleased (const awt::KeyEvent& rEvent) case awt::Key::LEFT: case awt::Key::UP: case awt::Key::BACKSPACE: + case awt::Key::XF86BACK: if (mxSlideShowController.is()) { mxSlideShowController->gotoPreviousEffect(); diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 7619624544b4..1e739ab97f26 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1848,6 +1848,7 @@ bool SlideshowImpl::keyInput(const KeyEvent& rKEvt) case KEY_SPACE: case KEY_RIGHT: case KEY_DOWN: + case KEY_XF86FORWARD: gotoNextEffect(); break; @@ -1893,6 +1894,7 @@ bool SlideshowImpl::keyInput(const KeyEvent& rKEvt) case KEY_LEFT: case KEY_UP: case KEY_BACKSPACE: + case KEY_XF86BACK: gotoPreviousEffect(); break; |