* open popup on complete-accept if there is a completion available

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27561 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-11-16 16:34:16 +00:00
parent 92138db60b
commit f54ef5c173
2 changed files with 11 additions and 4 deletions

View File

@ -625,9 +625,9 @@ void GuiCompleter::hideInline()
void GuiCompleter::activate()
{
if (!popupVisible() && !inlineVisible())
return;
popupActivated(currentCompletion());
tab();
else
popupActivated(currentCompletion());
}

View File

@ -1300,7 +1300,14 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
break;
case LFUN_COMPLETION_ACCEPT:
case LFUN_COMPLETION_CANCEL:
if (!d.current_work_area_
|| (!d.current_work_area_->completer().popupVisible()
&& !d.current_work_area_->completer().inlineVisible()
&& !d.current_work_area_->completer().completionAvailable()))
enable = false;
break;
case LFUN_COMPLETION_CANCEL:
if (!d.current_work_area_
|| (!d.current_work_area_->completer().popupVisible()
&& !d.current_work_area_->completer().inlineVisible()))