Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: option to hide extra key bar when IME is hidden #3263

Open
twaik opened this issue Feb 21, 2023 · 5 comments
Open

[Feature]: option to hide extra key bar when IME is hidden #3263

twaik opened this issue Feb 21, 2023 · 5 comments

Comments

@twaik
Copy link
Member

twaik commented Feb 21, 2023

Feature description

Can you please add some preference or option to hide additional key bar with arrows and tab when IME is not shown? It is not really useful with default keys list when there is not IME. But I think option to keep it should be kept for those who really need this. Sorry if it is not understood, I am a bit tired.

Additional information

394px-Termux-nano

@agnostic-apollo
Copy link
Member

Even though what you ask may be useful, there is no reliable way for termux to know whether the soft keyboard is open or closed.

@twaik
Copy link
Member Author

twaik commented Feb 21, 2023

SDL2 somehow checks it using InputMethodManager.isAcceptingText(). Can not we use it here?

@agnostic-apollo
Copy link
Member

That's not related to keyboard open state and won't give correct results either.

https://stackoverflow.com/a/53797832/14686958

@twaik
Copy link
Member Author

twaik commented Feb 21, 2023

According to this it seems to work with adjustResize and adjustPan

@agnostic-apollo
Copy link
Member

Read my linked comment again, it does not work reliably either. And I am pretty sure it would be worse in split screen, multi-window, etc.

If there was a reliable way, likely would have been found in more than a decade.

https://stackoverflow.com/questions/4745988/how-do-i-detect-if-software-keyboard-is-visible-on-android-device-or-not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants