diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-01 15:03:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-02 12:38:48 +0200 |
commit | 44fd4f1aacdd9a77fd4f5d2d1d300d3c73c35861 (patch) | |
tree | 4d132d7aac150f33cd21dfaa841b8e3d154a8013 /vcl/source/window | |
parent | 56b3c7ca9b50c0f6dcca2e6c4a3312deb46ec647 (diff) |
KeyFuncType::REPEAT is just a bare KEY_REPEAT case
the one use of it in SdrView::KeyInput already has a handler for KEY_REPEAT in
its default branch, so we can drop KeyFuncType::REPEAT
Change-Id: I6dd7612ab551baf3dfdccf0179b3efadfb7659ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101876
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/keycod.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx index 193115f5a6a1..349e87ecbf43 100644 --- a/vcl/source/window/keycod.cxx +++ b/vcl/source/window/keycod.cxx @@ -26,7 +26,7 @@ #include <vcl/window.hxx> #include <vcl/keycod.hxx> -const sal_uInt16 aImplKeyFuncTab[(static_cast<int>(KeyFuncType::REPEAT)+1)*4] = +const sal_uInt16 aImplKeyFuncTab[(static_cast<int>(KeyFuncType::DELETE)+1)*4] = { 0, 0, 0, 0, // KeyFuncType::DONTKNOW KEY_X | KEY_MOD1, KEY_DELETE | KEY_SHIFT, KEY_CUT, 0, // KeyFuncType::CUT @@ -34,8 +34,7 @@ const sal_uInt16 aImplKeyFuncTab[(static_cast<int>(KeyFuncType::REPEAT)+1)*4] = KEY_V | KEY_MOD1, KEY_INSERT | KEY_SHIFT, KEY_PASTE, 0, // KeyFuncType::PASTE KEY_Z | KEY_MOD1, KEY_BACKSPACE | KEY_MOD2, KEY_UNDO, 0, // KeyFuncType::UNDO KEY_Y | KEY_MOD1, KEY_UNDO | KEY_SHIFT, 0, 0, // KeyFuncType::REDO - KEY_DELETE, 0, 0, 0, // KeyFuncType::DELETE - KEY_REPEAT, 0, 0, 0 // KeyFuncType::REPEAT + KEY_DELETE, 0, 0, 0 // KeyFuncType::DELETE }; bool ImplGetKeyCode( KeyFuncType eFunc, sal_uInt16& rCode1, sal_uInt16& rCode2, sal_uInt16& rCode3, sal_uInt16& rCode4 ) @@ -79,7 +78,7 @@ KeyFuncType vcl::KeyCode::GetFunction() const sal_uInt16 nCompCode = GetModifier() | GetCode(); if ( nCompCode ) { - for ( sal_uInt16 i = sal_uInt16(KeyFuncType::CUT); i <= sal_uInt16(KeyFuncType::REPEAT); i++ ) + for ( sal_uInt16 i = sal_uInt16(KeyFuncType::CUT); i <= sal_uInt16(KeyFuncType::DELETE); i++ ) { sal_uInt16 nKeyCode1; sal_uInt16 nKeyCode2; |