sd/source/ui/view/NotesPanelViewShell.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit dc208a0de04b29a53fe8384043f1fc925761a912
Author:     Sarper Akdemir <sarper.akde...@allotropia.de>
AuthorDate: Fri May 24 10:41:08 2024 +0200
Commit:     Sarper Akdemir <sarper.akde...@allotropia.de>
CommitDate: Fri May 24 15:18:11 2024 +0200

    tdf#33603: sd: notes pane: properly handle movement keys
    
    Makes it so that notes pane handles some previously
    incorrectly handled keys itself. e.g. PageUp & PageDown
    
    Change-Id: I19f73fa2782900a752889544dcc79fc180ee52d4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168008
    Reviewed-by: Sarper Akdemir <sarper.akde...@allotropia.de>
    Tested-by: Jenkins

diff --git a/sd/source/ui/view/NotesPanelViewShell.cxx 
b/sd/source/ui/view/NotesPanelViewShell.cxx
index 6bccc766b7cb..a34660280459 100644
--- a/sd/source/ui/view/NotesPanelViewShell.cxx
+++ b/sd/source/ui/view/NotesPanelViewShell.cxx
@@ -1417,7 +1417,7 @@ bool NotesPanelViewShell::KeyInput(const KeyEvent& rKEvt, 
::sd::Window* pWin)
 {
     bool bReturn = false;
 
-    if (pWin == nullptr && HasCurrentFunction())
+    if (HasCurrentFunction())
     {
         bReturn = GetCurrentFunction()->KeyInput(rKEvt);
     }
@@ -1436,7 +1436,6 @@ bool NotesPanelViewShell::KeyInput(const KeyEvent& rKEvt, 
::sd::Window* pWin)
     Invalidate(SID_STYLE_WATERCAN);
     Invalidate(SID_STYLE_FAMILY5);
 
-    vcl::KeyCode aKeyGroup(rKEvt.GetKeyCode().GetGroup());
     return bReturn;
 }
 

Reply via email to