Keep focus of "find" when returning to LyX window
Scott Kostyshak
skostysh at lyx.org
Mon Jul 11 19:50:25 UTC 2022
On Mon, Jul 11, 2022 at 09:30:32AM -0400, Paul A. Rubin wrote:
> On 7/10/22 20:21, Scott Kostyshak wrote:
> > To reproduce:
> >
> > 1. Open (simple) search, and put your cursor in the search line edit.
> >
> > 2. Select a different window (e.g., alt-tab).
> >
> > 3. Go back to the LyX window.
> >
> > For me, the focus is now in the main work area instead of the search line edit. Can anyone reproduce? Strangely, this doesn't happen with Advanced Find.
> >
> > Has anyone else previously found this annoying? I came across this when I wanted to paste in something from a clipboard manager and wanted it to go in the "find" line edit. Instead, it gets pasted in the main work area.
> >
> > Commenting out the line with "case QEvent::WindowActivate" in GuiView::event() fixes things for me. I'm not suggesting to remove that code especially since I don't understand it, but I'm just mentioning this observation in case it leads to something.
> >
> > Scott
> >
> I can confirm it with LyX 2.3.6.1 on Linux Mint. I don't alt-tab very often,
> so it's never happened to me (hence not particularly annoying).
Thanks for confirming, Paul, and for the data point!
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220711/a37260b0/attachment.asc>
More information about the lyx-devel
mailing list