Focus Proxy for Thesaurus Dialog

Richard Kimberly Heck rikiheck at lyx.org
Mon Jun 15 22:49:22 UTC 2020


On 6/15/20 6:29 PM, Richard Kimberly Heck wrote:
> On 6/15/20 2:43 PM, _johnny7_ger at web.de wrote:
>> Hello,
>>
>> I really appreciate your work for LyX and use it very happily for my PhD
>> thesis in the humanities.
>> The usage for me is almost flawless, I would just have a minor
>> suggestion: When I click on Thesaurus, I would like to be able to
>> immediately start typing the keyword before having to make another click
>> on the text field. Currently, nothing happens when typing.
> Can you please file an official bug report on trac?
>
> https://www.lyx.org/trac/newticket
>
> This should be pretty easy to fix, but we don't want to forget it.
>
>> (I already mailed to this list one month ago without having subscribed
>> but my mail seems not to have been reviewed or approved. This has worked
>> for me before, however. The same applies to lyx-users. You seem to
>> welcome messages by non-subscribers, so you might have a look at this.)
> We changed providers a while back; that's probably when the change
> happened. I've changed it to accept non-member posts now. If we get too
> much spam, though, we may have to change it back.

Is this the right way to do this?

Riki


-------------- next part --------------
diff --git a/src/frontends/qt/GuiThesaurus.cpp b/src/frontends/qt/GuiThesaurus.cpp
index c3e7c95829..2e80137019 100644
--- a/src/frontends/qt/GuiThesaurus.cpp
+++ b/src/frontends/qt/GuiThesaurus.cpp
@@ -91,6 +91,8 @@ GuiThesaurus::GuiThesaurus(GuiView & lv)
 	bc().addReadOnly(replaceED);
 	bc().addReadOnly(replacePB);
 	bc().setPolicy(ButtonPolicy::OkApplyCancelReadOnlyPolicy);
+
+	setFocusProxy(entryCO);
 }
 
 void GuiThesaurus::checkStatus()


More information about the lyx-devel mailing list