ephemeral icon indicating copy to clipboard operation
ephemeral copied to clipboard

Trouble with switching layout

Open logdimov opened this issue 5 years ago • 4 comments

Hello. Found the problem: The search bar is cleared when switching layouts if I enter a query in two languages.

logdimov avatar Oct 22 '20 18:10 logdimov

You mean changing keyboard layout language with Shift+Alt? It does clear text I type into the address/search bar when I press the key combo, so if you meant that, I can also reproduce it.

janxkoci avatar Oct 29 '20 15:10 janxkoci

You mean changing keyboard layout language with Shift+Alt? It does clear text I type into the address/search bar when I press the key combo, so if you meant that, I can also reproduce it.

Hello. Yes, I'm talking about this problem.

logdimov avatar Oct 29 '20 15:10 logdimov

Thanks for reporting this! It looks like I reset the UrlEntry when it loses focus:

https://github.com/cassidyjames/ephemeral/blob/bb775debde3c48cdf4b3c58d2ec3de90c03bba83/src/Widgets/UrlEntry.vala#L118-L130

...and changing layouts causes it to lose focus. I can revisit this and see what other browsers do.

cassidyjames avatar Oct 29 '20 22:10 cassidyjames

I just realized this also happens when I alt+tab into another app and back, e.g. when I try to retype some search terms from somewhere (maybe a photo or other source without easy copy-paste).

I can revisit this and see what other browsers do.

Both Epiphany and Firefox keep the typed text, although they both stop showing suggestions etc, after I alt+tab away and back.

janxkoci avatar Nov 02 '20 09:11 janxkoci