summaryrefslogtreecommitdiffstats
path: root/basctl/source/basicide/baside2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/baside2.cxx')
-rw-r--r--basctl/source/basicide/baside2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index d4102010a6df..04daad9b5fd1 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -892,11 +892,10 @@ void ModulWindow::ExecuteCommand (SfxRequest& rReq)
{
case SID_DELETE:
{
- KeyEvent aFakeDelete( 0, KEY_DELETE );
- bool bDone = GetEditView()->KeyInput( aFakeDelete );
- if (!bDone)
+ if (!IsReadOnly())
{
- BaseWindow::KeyInput(aFakeDelete);
+ KeyEvent aFakeDelete(0, KEY_DELETE);
+ (void)GetEditView()->KeyInput(aFakeDelete);
}
break;
}