Changeset 27561

Show
Ignore:
Timestamp:
11/16/08 17:34:16 (2 months ago)
Author:
sts
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lyx-devel/trunk/src/frontends/qt4/GuiCompleter.cpp

    r27420 r27561  
    626626{ 
    627627        if (!popupVisible() && !inlineVisible()) 
    628                 return
    629  
    630         popupActivated(currentCompletion()); 
     628                tab()
     629        else 
     630               popupActivated(currentCompletion()); 
    631631} 
    632632 
  • lyx-devel/trunk/src/frontends/qt4/GuiView.cpp

    r27556 r27561  
    13011301 
    13021302        case LFUN_COMPLETION_ACCEPT: 
    1303         case LFUN_COMPLETION_CANCEL: 
     1303                if (!d.current_work_area_ 
     1304                    || (!d.current_work_area_->completer().popupVisible() 
     1305                        && !d.current_work_area_->completer().inlineVisible() 
     1306                        && !d.current_work_area_->completer().completionAvailable())) 
     1307                        enable = false; 
     1308                break; 
     1309 
     1310                case LFUN_COMPLETION_CANCEL: 
    13041311                if (!d.current_work_area_ 
    13051312                    || (!d.current_work_area_->completer().popupVisible()