summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2015-10-19 15:14:10 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-10-23 06:34:29 +0000
commit536a614b53f7597faaa3abc0c61db6f3dde4501f (patch)
treec070f65d9743ad580fa6ba757bfd55d7961d76a7
parentd688d2622ba9f61e753f9a52400b3467a944b0e3 (diff)
tdf#64432: enable delete and backspace in editable elements within protections
when editing is enabled also delete and backspace should be possible this applies e.g. to input fields within protected sections Change-Id: Ia2a95d272cf22aa7f1b2a8e005e9a46373aee080 Reviewed-on: https://gerrit.libreoffice.org/19454 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 7d160526f120..351d422ab9d3 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1822,7 +1822,7 @@ KEYINPUT_CHECKTABLE_INSDEL:
break;
case KEY_DELETE:
- if ( !rSh.HasReadonlySel() )
+ if ( !rSh.HasReadonlySel() || rSh.CrsrInsideInputFld())
{
if (rSh.IsInFrontOfLabel() && rSh.NumOrNoNum(false))
eKeyState = KS_NumOrNoNum;
@@ -1909,7 +1909,7 @@ KEYINPUT_CHECKTABLE_INSDEL:
break;
case KEY_BACKSPACE:
case KEY_BACKSPACE | KEY_SHIFT:
- if ( !rSh.HasReadonlySel() )
+ if ( !rSh.HasReadonlySel() || rSh.CrsrInsideInputFld())
{
bool bDone = false;
// try to add comment for code snip: