mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
* 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:
parent
92138db60b
commit
f54ef5c173
@ -625,9 +625,9 @@ void GuiCompleter::hideInline()
|
||||
void GuiCompleter::activate()
|
||||
{
|
||||
if (!popupVisible() && !inlineVisible())
|
||||
return;
|
||||
|
||||
popupActivated(currentCompletion());
|
||||
tab();
|
||||
else
|
||||
popupActivated(currentCompletion());
|
||||
}
|
||||
|
||||
|
||||
|
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user