Kaydet (Commit) 2b766197 authored tarafından Oliver Specht's avatar Oliver Specht Kaydeden (comit) Björn Michaelsen

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/19399Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarOliver Specht <oliver.specht@cib.de>
(cherry picked from commit ac427caf)
Reviewed-on: https://gerrit.libreoffice.org/19453Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
üst b424ffd2
......@@ -1822,7 +1822,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;
......@@ -1909,7 +1909,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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment