officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu | 8 +++++++ sd/source/ui/slideshow/slideshowimpl.cxx | 9 ++++++++ sdext/source/presenter/PresenterController.cxx | 11 ++++++++++ 3 files changed, 28 insertions(+)
New commits: commit 76f7f0c167a5148c01cdb1e0d8ea56b905f5a875 Author: Gabor Kelemen <kelem...@ubuntu.com> AuthorDate: Fri Jun 10 10:28:36 2022 +0200 Commit: Gabor Kelemen <kelem...@ubuntu.com> CommitDate: Tue Jun 14 16:37:46 2022 +0200 tdf#149351 Add a 'Turn off mouse as pen' shortcut for UX compatibility with PP: Ctrl-A turns off 'mouse as pen' mode Change-Id: I0379580f4034f07f044dc1079c14898f3014face Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135579 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Reviewed-by: Gabor Kelemen <kelem...@ubuntu.com> diff --git a/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu b/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu index 4f99dae763a8..b21e67fd9e47 100644 --- a/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu +++ b/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu @@ -1163,6 +1163,14 @@ <value xml:lang="en-US">Switches monitors</value> </prop> </node> + <node oor:name="z" oor:op="replace"> + <prop oor:name="Left"> + <value xml:lang="en-US">Ctrl-'A'</value> + </prop> + <prop oor:name="Right"> + <value xml:lang="en-US">Turn off pointer as pen mode</value> + </prop> + </node> </node> </node> </node> diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 3215a550b7c1..89a8ac95f033 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1816,6 +1816,15 @@ bool SlideshowImpl::keyInput(const KeyEvent& rKEvt) setUsePen( !mbUsePen ); break; + // tdf#149351 Ctrl+A disables pointer as pen mode + case KEY_A: + if(rKEvt.GetKeyCode().IsMod1()) + { + setUsePen( false ); + break; + } + break; + case KEY_E: setEraseAllInk( true ); updateSlideShow(); diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx index 5b501dbfa7cd..1062d892d336 100644 --- a/sdext/source/presenter/PresenterController.cxx +++ b/sdext/source/presenter/PresenterController.cxx @@ -878,6 +878,17 @@ void SAL_CALL PresenterController::keyReleased (const awt::KeyEvent& rEvent) } break; + // tdf#149351 Ctrl+A disables pointer as pen mode + case awt::Key::A: + if (mxSlideShowController.is()) + { + if (rEvent.Modifiers == awt::KeyModifier::MOD1) + { + mxSlideShowController->setUsePen( false ); + } + } + break; + case awt::Key::E: if (mxSlideShowController.is()) {