Kaydet (Commit) 4a0cf72f authored tarafından Joren De Cuyper's avatar Joren De Cuyper Kaydeden (comit) Caolán McNamara

tdf#88608: clear SearchLabel when altering the search string

Change-Id: Ifc31fbd1ddee1e055bb62b9ad098ae9410758147
Reviewed-on: https://gerrit.libreoffice.org/15598Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 101cc7a8
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
#include <svx/srchdlg.hxx>
#include <vcl/fixed.hxx> #include <vcl/fixed.hxx>
...@@ -195,6 +196,11 @@ bool FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) ...@@ -195,6 +196,11 @@ bool FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
{ {
case MouseNotifyEvent::KEYINPUT: case MouseNotifyEvent::KEYINPUT:
{ {
// Clear SearchLabel when altering the search string
#if HAVE_FEATURE_DESKTOP
SvxSearchDialogWrapper::SetSearchLabel(SL_Empty);
#endif
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent(); const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
bool bShift = pKeyEvent->GetKeyCode().IsShift(); bool bShift = pKeyEvent->GetKeyCode().IsShift();
bool bMod1 = pKeyEvent->GetKeyCode().IsMod1(); bool bMod1 = pKeyEvent->GetKeyCode().IsMod1();
......
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