diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-10-15 18:55:55 +0200 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-10-16 05:12:54 +0000 |
commit | ac427caf1069ff66b4893bb2e937c2408d7c37b3 (patch) | |
tree | 6d463d2600aec1575007824c9b20ee3a0ca35053 | |
parent | b684090d4f573eb339e93872d0cef07e69adc913 (diff) |
tdf#95091: 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: Iee5ef133971a3f2967e6c92e685a16afa003cfe8
Reviewed-on: https://gerrit.libreoffice.org/19399
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 4a6d6c33953c..b5d36c0923dd 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -1831,7 +1831,7 @@ KEYINPUT_CHECKTABLE_INSDEL: break; case KEY_DELETE: - if ( !rSh.HasReadonlySel() ) + if ( !rSh.HasReadonlySel() || rSh.CrsrInsideInputField()) { if (rSh.IsInFrontOfLabel() && rSh.NumOrNoNum(false)) eKeyState = KS_NumOrNoNum; @@ -1918,7 +1918,7 @@ KEYINPUT_CHECKTABLE_INSDEL: break; case KEY_BACKSPACE: case KEY_BACKSPACE | KEY_SHIFT: - if ( !rSh.HasReadonlySel() ) + if ( !rSh.HasReadonlySel() || rSh.CrsrInsideInputField()) { bool bDone = false; // try to add comment for code snip: |