-
Notifications
You must be signed in to change notification settings - Fork 184
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
Spacebar multitaps and line break #881
Comments
I'm guessing it considers a newline a cursor move? https://github.com/dessalines/thumb-key/blob/main/app/src/main/java/com/dessalines/thumbkey/ui/components/keyboard/KeyboardKey.kt#L210 I'm not sure what the best way to get around that would be. |
I have absolutely no idea, since I am neither an Android nor a Java developer. I just know, that this works as expected with The Other App … |
Yes, the way it is implemented, it actually compares the on-screen cursor coordinates to check if it moved. So any vertical movement is considered a move
I've managed to get a working reimplementation which actually takes the cursor's index into account. I'll create a pull request for it soon. On another note, I think it would be beneficial to redesign the way ReplaceLastText actions work, as they seem quite imperative currently (as they depend on a hard coded trim length). This redesign could provide new interesting action possibilities, and it might fix some of the problems we have with multitaps on some apps too |
This adds a new function to the IMEService class which makes it ignore the next cursor movement
This adds a new function to the IMEService class which makes it ignore the next cursor movement. This function is called from certain parts in `performKeyAction` which would interfere with the cursor movement detection algorithm
Steps to reproduce
,
or.
would still fit into the line, but a?
would break the lineExpected behavior
More taps should cycle through the punctuations.
Actual behavior
After the line breaks into the next line, more taps on the spacebar starts the multitap behaviour again.
version of the program
2.7.6
Android version
Android 8.1
Device
Unihertz Jelly
Other details
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: