]> git.lyx.org Git - features.git/commitdiff
Give focus to the filter in GuiRef
authorGuillaume Munch <gm@lyx.org>
Sun, 26 Feb 2017 21:15:50 +0000 (22:15 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 26 Feb 2017 21:16:10 +0000 (22:16 +0100)
This is now consistent with GuiCitation. Compared to the previous behaviour
there is only one down key press difference.

src/frontends/qt4/GuiRef.cpp

index 3d3cdded27e2ccbe1bff185bd34a1ea3ae3ff05a..6ef6be5b29e48c2d518ccb72a15311d0e16b075b 100644 (file)
@@ -130,6 +130,8 @@ GuiRef::GuiRef(GuiView & lv)
 
        restored_buffer_ = -1;
        active_buffer_ = -1;
+
+       setFocusProxy(filter_);
 }
 
 
@@ -539,8 +541,6 @@ void GuiRef::updateRefs()
        sortingCO->setEnabled(!refs_.empty());
        refsTW->setEnabled(!refs_.empty());
        groupCB->setEnabled(!refs_.empty());
-       // refsTW should only be the focus proxy when it is enabled
-       setFocusProxy(refs_.empty() ? 0 : refsTW);
        redoRefs();
 }