summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-01 10:28:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-01 10:30:25 +0000
commit4bd53cd880ecfa9af27735344bf57fb45de20c25 (patch)
tree3d76bf697df081f01f22bbbb476d25edce965807
parente78be1c18fc0a3f893023e3086d8cdb5e6d5a6b9 (diff)
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
-rw-r--r--cui/source/dialogs/SpellDialog.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index daf08b2250b8..16e57d054b87 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -428,7 +428,6 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent
*/
IMPL_LINK_NOARG( SpellDialog, InitHdl, void*, void)
{
- m_pToolbar->Disable();
SetUpdateMode( false );
//show or hide AutoCorrect depending on the modules abilities
m_pAutoCorrPB->Show(rParent.HasAutoCorrection());
@@ -1515,14 +1514,6 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
else
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);
}