summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-10-18 21:25:59 +0200
committerDavid Gilbert <freedesktop@treblig.org>2024-11-02 01:02:19 +0100
commitdb7cd5032068c5b9faa4c707db204b58c1dbf2b2 (patch)
treeb6fc13412a541af2d444e8213582d753433886d2 /basctl
parentc0975e6344bf93921655a8f362660b181f564ee2 (diff)
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 2743, 2797 Change-Id: Id998cf92bb6d1540b7498138546618b350e52363 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175157 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesktop@treblig.org>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 2e6ebc14349e..f25915ac1b47 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -2740,6 +2740,7 @@ bool CodeCompleteWindow::HandleKeyInput( const KeyEvent& rKeyEvt )
case KEY_POINT:
break;
case KEY_ESCAPE: // hide, do nothing
+ case KEY_SPACE:
HideAndRestoreFocus();
break;
case KEY_RIGHT:
@@ -2793,9 +2794,6 @@ bool CodeCompleteWindow::HandleKeyInput( const KeyEvent& rKeyEvt )
}
break;
}
- case KEY_SPACE:
- HideAndRestoreFocus();
- break;
case KEY_BACKSPACE: case KEY_DELETE:
if( !aFuncBuffer.isEmpty() )
{