Kaydet (Commit) 66838c24 authored tarafından Ilhan Yesil's avatar Ilhan Yesil Kaydeden (comit) Michael Stahl

tdf#119016 Editing a read-only section shall popup a dialog

While processing the key input, an additional if statement for the
paste command (Ctrl+V) is added.

Change-Id: If205589256855422ac93f8a5ed8a1ee394ca9310
Reviewed-on: https://gerrit.libreoffice.org/58360
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
üst eb34a6a9
......@@ -2250,7 +2250,13 @@ KEYINPUT_CHECKTABLE_INSDEL:
if( !m_aInBuffer.isEmpty() && ( !bNormalChar || bIsDocReadOnly ))
FlushInBuffer();
if( m_rView.KeyInput( aKeyEvent ) )
if (rSh.HasReadonlySel() && rKeyCode.GetFunction() == KeyFuncType::PASTE)
{
auto xInfo(std::make_shared<weld::GenericDialogController>(GetFrameWeld(), "modules/swriter/ui/inforeadonlydialog.ui", "InfoReadonlyDialog"));
weld::DialogController::runAsync(xInfo, [](int) {});
eKeyState = SwKeyState::End;
}
else if( m_rView.KeyInput( aKeyEvent ) )
{
bFlushBuffer = true;
bNormalChar = false;
......
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