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

No software SEND function - possible via hardware keys? #77

Closed
r0usch opened this issue Oct 13, 2022 · 1 comment · Fixed by #76
Closed

No software SEND function - possible via hardware keys? #77

r0usch opened this issue Oct 13, 2022 · 1 comment · Fixed by #76
Labels
duplicate This issue or pull request already exists

Comments

@r0usch
Copy link

r0usch commented Oct 13, 2022

Hi, love the keyboard so far and want to start by saying that I am not an experienced Android dev.

I'm using the Xiaomi Qin F21 Pro and am using a few apps without a send button next to the text input. Using the enter key (when remapped) also does nothing. I'm guessing this is because the SEND function is a softkey function and can't be remapped to a hardware based key, as evidenced by people trying (and failing) to do so with Bluetooth keyboards on Android. Would it be possible to, near to or next to the predictive text at the bottom of the screen, add a software-based SEND function to work-around this issue? It's making certain text fields incredibly difficult to fill out - I type what I want in T9 then have to switch to the AOSP keyboard just to press send.

Thanks.

@sspanak
Copy link
Owner

sspanak commented Oct 14, 2022

Yes, I've noticed the same and I've taken care of it in #51. Currently, it is in old-skool-experience branch. I am going to test a bit and merge it in a couple of days.

I was not able to make this work in all applications, notably Viber and FB Messenger. I guess, it's because the application itself must be made to support a "default" or "send" action and these two don't. Anyway, it's still possible to hit the send button of the app itself.

Some background info about the problem:

  1. It doesn't matter if it is a hardware or a software key. All commands go through a so called "input connection" and it is possible to interact with it anywhere in the code.
  2. The Center/OK key is not the same as the Enter key on a full-sized keyboard. As a matter of fact, it is theoretcially possible to build a keyboard that has both. And it is up to the application to decide what to do when each of them are pressed.

@sspanak sspanak added the duplicate This issue or pull request already exists label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants