HeliBoard icon indicating copy to clipboard operation
HeliBoard copied to clipboard

Remember input language by app

Open markokocic opened this issue 1 year ago • 7 comments
trafficstars

It would be nice if HeliBoard would remember last used input language not globally, but based on an app.

Use case: I have 5-6 different languages installed. I use browser and terminal almost exclusively in English, messengers in my native language, bank apps in German and language learning apps in the language I learn.

It would be very nice, if possible, if HeliBoard would remember last used language for every app when started, so I wouldn't need to switch keyboard every time when switching app.

markokocic avatar Mar 30 '24 13:03 markokocic

This should be relatively simple to do.

Setting the keyboard should happen in onStartInputInternal. EditorInfo.packageName is the app name. Not sure when to best store the selected keyboard. Either when switching language, or when leaving the input field.

Helium314 avatar Mar 31 '24 21:03 Helium314

When selecting the language may be the obvious choice.

Not sure if leaving the input field event get triggered in all cases, for example when switching or killing apps.

markokocic avatar Mar 31 '24 21:03 markokocic

Please make this an option and not the only possible behavior, if it gets implemented.

tenextractor avatar Apr 10 '24 14:04 tenextractor

I don't know if this is the right issue for this. I can make a separate issue if required.

Currently, Heliboard switches to French when I open Duolingo, which is great. But it doesn't switch back to English when I close Duolingo or open another app for which English is the default language. Is it possible to query the language for every app?

metalstorm161 avatar May 07 '25 18:05 metalstorm161

Which version are you using @metalstorm161? I'm not sure, but I think there might have been a relatd change recently.

Helium314 avatar May 07 '25 18:05 Helium314

Which version are you using @metalstorm161? I'm not sure, but I think there might have been a relatd change recently.

I'm on version 2.3

metalstorm161 avatar May 09 '25 08:05 metalstorm161

Then it might get fixed in the next version for you. It's currently in beta, looks like full release will be in a few days.

Helium314 avatar May 09 '25 14:05 Helium314