From cc4951d4042b7dd7635ec77c972350b59d609afc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Aug 2021 17:34:09 +0100 Subject: AutoAccel is only true for gtk and there BackingWindow doesn't use vcl widgets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so we can remove Accelerator::ToggleMnemonicsOnHierarchy here without any effect Change-Id: Ie7e8373c110216294dc4087d6ca1913bf8b25404 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120007 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/dialog/backingwindow.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index f58bf46329b0..3a95cef10e51 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -18,7 +18,6 @@ */ #include "backingwindow.hxx" -#include #include #include #include @@ -459,10 +458,6 @@ bool BackingWindow::PreNotify(NotifyEvent& rNEvt) if ((aCommand != "vnd.sun.star.findbar:FocusToFindbar") && pEvt && mpAccExec->execute(rKeyCode)) return true; } - else if (rNEvt.GetType() == MouseNotifyEvent::COMMAND) - { - Accelerator::ToggleMnemonicsOnHierarchy(*rNEvt.GetCommandEvent(), this); - } return InterimItemWindow::PreNotify( rNEvt ); } -- cgit