Kaydet (Commit) 4bd53cd8 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#100438 focus trapped in disabled toolbar

lets just leave the toolbar active the whole time, seems
to make more sense anyway wrt being allowed to keyboard
into it to paste/insert special character

Change-Id: I174fb707c4c7fd21d95461cc93323eb6d8970818
üst e78be1c1
...@@ -428,7 +428,6 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent ...@@ -428,7 +428,6 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent
*/ */
IMPL_LINK_NOARG( SpellDialog, InitHdl, void*, void) IMPL_LINK_NOARG( SpellDialog, InitHdl, void*, void)
{ {
m_pToolbar->Disable();
SetUpdateMode( false ); SetUpdateMode( false );
//show or hide AutoCorrect depending on the modules abilities //show or hide AutoCorrect depending on the modules abilities
m_pAutoCorrPB->Show(rParent.HasAutoCorrection()); m_pAutoCorrPB->Show(rParent.HasAutoCorrection());
...@@ -1515,14 +1514,6 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt ) ...@@ -1515,14 +1514,6 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
else else
bChange = false; bChange = false;
} }
else if (rNEvt.GetType() == MouseNotifyEvent::GETFOCUS && m_xToolbar)
{
m_xToolbar->Enable();
}
else if(rNEvt.GetType() == MouseNotifyEvent::LOSEFOCUS && m_xToolbar)
{
m_xToolbar->Disable();
}
return bChange || VclMultiLineEdit::PreNotify(rNEvt); return bChange || VclMultiLineEdit::PreNotify(rNEvt);
} }
......
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