diff options
author | matteocam <matteo.campanelli@gmail.com> | 2015-07-24 17:16:08 +0200 |
---|---|---|
committer | matteocam <matteo.campanelli@gmail.com> | 2015-07-31 12:18:21 +0200 |
commit | f85111d1ff33f0fd4ad244096ac289f785c64b6b (patch) | |
tree | 0d781ce7c3269931098284b8934d2955ca6ba83a /svx | |
parent | 221e1f9d8a33a6cf0a99ab3d863525581e75f954 (diff) |
Detect DEL by KeyFuncType::DELETE
Change-Id: I062360a104e9ed07ac4b693536df0c45f18078b3
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/textchaincursor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/textchaincursor.cxx b/svx/source/svdraw/textchaincursor.cxx index 35a339eda7e3..9f4e0007d340 100644 --- a/svx/source/svdraw/textchaincursor.cxx +++ b/svx/source/svdraw/textchaincursor.cxx @@ -68,7 +68,7 @@ void TextChainCursorManager::impDetectEvent(const KeyEvent& rKEvt, KeyFuncType eFunc = rKEvt.GetKeyCode().GetFunction(); // We need to have this KeyFuncType - if (eFunc != KeyFuncType::DONTKNOW) + if (eFunc != KeyFuncType::DONTKNOW && eFunc != KeyFuncType::DELETE) { *pOutCursorEvt = CursorChainingEvent::NULL_EVENT; return; @@ -94,7 +94,7 @@ void TextChainCursorManager::impDetectEvent(const KeyEvent& rKEvt, } // Possibility: Are we "pushing" at the end of the object? - if (nCode == KEY_DELETE && bAtEndOfTextContent && pNextLink) + if (eFunc == KeyFuncType::DELETE && bAtEndOfTextContent && pNextLink) { *pOutCursorEvt = CursorChainingEvent::TO_NEXT_LINK; // Selection unchanged: we are at the beginning of the box |