summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2015-10-19 15:14:10 +0200
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2015-10-20 12:56:53 +0000
commiteb0d47c372366da812e8dd1a54f772f1d43e9310 (patch)
treeded721142b38b37dcaa6ea7f0a80e53586c3b2ea
parent2eb0e9cddabcbf0c56af3739466843def1d2417a (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/19480 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
-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: