Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Trouble with switching layout #266

Open
logdimov opened this issue Oct 22, 2020 · 4 comments
Open

Trouble with switching layout #266

logdimov opened this issue Oct 22, 2020 · 4 comments
Labels
Confirmed Verified by someone other than the reporter

Comments

@logdimov
Copy link

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

@janxkoci
Copy link

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.

@logdimov
Copy link
Author

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.

@cassidyjames
Copy link
Owner

cassidyjames commented Oct 29, 2020

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

focus_out_event.connect ((event) => {
string uri = web_view.get_uri ();
if (uri == null || uri == "about:blank") {
text = "";
} else if (text == "") {
text = WebKit.uri_for_display (uri);
}
set_secondary_icon ();
return false;
});

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

@cassidyjames cassidyjames added the Confirmed Verified by someone other than the reporter label Oct 29, 2020
@janxkoci
Copy link

janxkoci commented Nov 2, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Confirmed Verified by someone other than the reporter
Projects
None yet
Development

No branches or pull requests

3 participants